just check inside the action ^^
add_action( 'vc_before_init', 'vc_master_home_slider' );
function vc_master_home_slider(){
if(is_plugin_active('some-plugin.php'){
//Do stuff.
}
}
Related Posts:
- remove_action or remove_filter with external classes?
- Why does save_post action fire when creating a new post?
- How to know what priority to use with add_action()?
- Difference between do_action_ref_array() and do_action()
- Can my “add_action” function know the name of the hook calling it?
- Why is there both a save_post and wp_insert_post action?
- Can an action callback prevent the parent from continuing execution?
- remove_action in a theme
- add_action ‘manage_posts_custom_column’ in a class [closed]
- Cron jobs in a class
- Add something to beginning of the content
- How can I remove the WP menu from the admin bar?
- When and Where to use wp_insert_post()
- WP Schedule Event – Every Day When First Visitor Comes
- wp_logout action not working
- How to remove an action that is added inside a class
- add action which returns modified value
- WordPress admin WP_table_list show incorrectly
- Custom bulk actions in WP 3.7.1
- do_action pass array argument as reference not copy [duplicate]
- Modify query in pre_get_posts action is messing up my nav menu
- How to check if an action is already fired?
- add_action and wp_head not display content in head section
- Scheduled event won’t fire
- When should I call add_settings_section and add_settings_field?
- use add_action(‘wp_head’) in a widget
- Usage of do_action and add_adction
- Preventing frontpage to be deleted/moved to trash
- WP action is not triggering a do_action() call within?
- Mustn’t do_action be accompanied with a function?
- How to remove a custom action on child theme?
- Action hook on only publishing post not on editing or updating
- Remove action from shortcode
- Write automatic title at save_post (infinite loop)
- How to get $tag to fill into add_action() or add_filter()?
- Better action hook for creating table than after_switch_theme and switch_theme action hook
- Adding the hook ‘vc_before_init’ inside a object
- How to apply action the_post to the post that is only being mainly displayed
- admin_notices on runtime in function
- Using several add_action with parameters inside a class
- Action hook load_textdomain $domain variable
- Action hook for editing post
- add_action and do_action: multiple calls to same callback?
- remove_action returns false regardless of priority
- Set a custom display_name on user_register?
- How to make an action run in the background?
- WP cron doesn’t pass through my arguments
- Action when sidebars updated
- Why does my wp_safe_redirect output the ERR_TOO_MANY_REDIRECTS error?
- Re-order Woocommerce single product and echo div around moved & duplicated Woocommerce hooks
- Custom Post type forgetting data
- How to access author data from header action
- Insert custom postmeta when custom post type published
- Content won’t load when using action the_content
- How can I unhook this action that was added via $this?
- Update media library image shown in “attachment details” when using wp_insert_attachment to add item to the media library
- How to find where an action is triggered? [closed]
- Create post revision on slug change
- Is dynamic action name building a bad practice?
- Form action unfamiliar
- Why does my delete_post hook get called twice
- Can’t Get Metabox Data Saved Assistance Needed
- is there an update_post_meta action
- A unique wp_schedule_single_event() for each post?
- Action Scheduler not running
- Adding php to form action breaks code [closed]
- Is this the correct way to enqueue style sheets from parent theme and then from child theme in wordpress?
- Dynamic name of cron event
- Change Post Publish Date to Post Modified Date in All Places
- add_action to wp_head is added, but not called
- Where to place add_action when enqueueing?
- add_action which contains first argument admin_print_scripts-$page
- Activity feed on admin dashboard
- update_user_meta not updating
- How do i know which action / filters are called when i call get_option()
- action wp_set_comment_status never gets fired when i change the comment status [closed]
- Change or rewrite add to cart button functionality “
- Better use two dedicated methods hooked with add_action() to different actions, or can it be twice the same method?
- admin_notices is not working inside function
- do_action doesn’t trigger if it’s in a template that gets loaded via REST endpoint
- Best hook for when a user session ends?
- add_action where function has arguments
- Load actions and filters only for the admin CPT list
- How to override parent theme actions
- Add Action wp_update_post not Updating WYSWIAG editor
- remove action from woocommerce file
- Can I run a slow action in a seperate thread?
- Font Awesome not loaded on first page of website only – divi theme
- WP_LIST_TABLE bulk action
- Dealing with html forms [closed]
- Cannot Schedule Sending An Email
- OOP – add_action
- do_action in header, add action later?
- WordPress’ work or execution flow manipulating $wpdb
- Add-action in function
- save post running twice and creating two database entries – how do I disable this?
- Plugin that generates a page of post content
- Using add action for class with construct
- Webhook: save_post action fires wp_remote_post twice
- A way to see real changes of posts inside an action?