• Hi, thanks for the awesome plugin.

    Just one quick question – how do you pass parameters and specify the priority of the action/filter for custom PHP code? We’re allowed to type the filter name above, and the code in the box below. There’s no provision for additional parameters.

    Am I missing something?

    https://wordpress.org/plugins/custom-css-js-php/

Viewing 1 replies (of 1 total)
  • gosub

    (@gosub)

    I fond a smal hack to get this function working.
    1. In the database, Add a column in wp_wce_editor_content table, call it ‘args’
    2. In the php file custom-css-js-php.php, Find the line:
    $wp_func_name( $hook->tag_name, $func_name , 10 , $hook->accept_args );
    replace with:
    $wp_func_name( $hook->tag_name, $func_name , $hook->args , $hook->accept_args );
    3. Now you can manuly insert extra arguments in the database column after you have created your code, use comas to seperate your arguments.

Viewing 1 replies (of 1 total)
  • The topic ‘Adding parameters and priority to Filters/Actions?’ is closed to new replies.