Skip to:
Content
Pages
Categories
Search
Top
Bottom

remove_action and dequeue_script


  • Marcella
    Participant

    @marcella1981

    Having some troubles removing 3 actions and 1 script.

    Namely, bp_core_add_cropper_inline_js, bp_core_add_cropper_inline_css and bp_core_confirmation_js. The script is jCrop.

    Running this code in functions.php of the child theme appears does nothing.

    `remove_action(‘wp_head’, ‘bp_core_add_cropper_inline_js’);
    remove_action(‘wp_head’, ‘bp_core_add_cropper_inline_css’);
    remove_action(‘wp_head’, ‘bp_core_confirmation_js’);

    wp_deregister_script(‘jcrop’);`

    Any ideas on how to work around this without core edits?

    Thanks

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘remove_action and dequeue_script’ is closed to new replies.
Skip to toolbar