کد نمونه
Step ۱
اکسترا
استفاده از add action محتوا یا کدهای PHP
در مثال زیر می توانید نحوه اضافه کردن محتوا یا کدهای PHP را قبل از سمت فیکس مشاهده کنید.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* With this function you can add any content or php codes before fixed side. | |
*/ | |
function my_prefix_before_fixed_side_۱() { | |
echo 'This is a custom content text.'; | |
} | |
add_action( 'codevz/before_fixed_side_۱', 'my_prefix_before_fixed_side_۱' ); |
اکسترا
کجا و چگونه کد های PHP را تغییر دهیم؟
بهترین راه حل اضافه کردن اکشن ها و فیلترهای سفارشی در فایل functions.php در قالب چایلد است. اما همچنین
می توانید افزونه خود را بسازید و از این کدها در افزونه خود استفاده کنید.