using filter adverts_load_template
-
hi Greg, it’s me again. I have a question about using ‘filter adverts_load_template’. right I’ve done:
add_action(“adverts_template_load”, “custom-add-payment”);
function custom_list_template( /home/b/bod9nou/urist/public_html/wp-content/plugins/custom-template-wpadvers/custom-add-payment.php ) {
1) the way to replace?
$basename = add-payment.php( /home/b/bod9nou/urist/public_html/wp-content/plugins/wpadverts/addons/payments/templates/add-payment.php );
2) the way to replace
if( $basename == “add-payment.php” ) {
return dirname( __FILE__ ) . “/add-payment.php”;
} else {
return /home/b/bod9nou/urist/public_html/wp-content/plugins/wpadverts/addons/payments/templates/add-payment.php;
} 3)the path to the original?
}I use a translator.
link to the examples on the website doesn’t work.
- The topic ‘using filter adverts_load_template’ is closed to new replies.