plechev

Пример подмены шаблона

Sep 9th, 2016
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  1. add_filter('rcl_template_path','crf_include_template_form',10,2);
  2. function crf_include_template_form($path,$filename){
  3.     if($filename!='form-register.php') return $path;
  4.     $path = rcl_addon_path(__FILE__).'templates/form-register.php';
  5.     return $path;
  6. }
Add Comment
Please, Sign In to add comment