WordPress.org

Ready to get started?Download WordPress

Forums

Audio
Problem with remove_action function (1 post)

  1. Aleksandr Ivanov
    Member
    Posted 1 year ago #

    Hi!
    I really like your Audio plugin. I'm using plugin only on certain types of pages, so I wanted to load plugin resources only for these pages. I'm trying to do it in my functions.php file and right now code looks like:

    global $_audio_wp_plugin;
    
    remove_action('wp_print_scripts', array (&$_audio_wp_plugin, 'scripts'));
    remove_action('wp_print_styles', array (&$_audio_wp_plugin, 'styles'));

    But this code doesn't work. Do you have any comments?

    http://wordpress.org/extend/plugins/audio/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 1 year ago by Aleksandr Ivanov
  • This topic is not resolved
  • WordPress version: 3.4.1

Tags

No tags yet.