You can simply use current_filter()
WordPress function.
http://codex.wordpress.org/Function_Reference/current_filter
Related Posts:
- add_action(), add_filter() before or after function
- Trouble understanding apply_filters()
- What is the very earliest action hook you can call?
- wp_headers vs send_headers. When to use each?
- How many filter/action hooks are healthy?
- Remove Editor From Homepage
- Valid characters for actions, hooks and filters
- Advanced Custom Fields and Yoast SEO keyword analysis [closed]
- Is it possible to use object in add_action?
- Store source permalink on XMLRPC calls
- Anyway to edit the titlebar of WordPress Widgets in the Admin area?
- How do I know if author field was changed on post save?
- Using hooks to place content in theme dynamically
- PHP5, Inheritance, Singleton – action & filter hook limitations
- Please explain me what the do_action does
- Apply the_title filter to post titles AND backend auto social-sharing plugin, but not nav menu
- add_action uses ‘echo’ add_filter uses ‘return’, why?
- changing variable through filters or action hooks
- Too many actions/filters!
- Apply a filter only once
- Making a class available via actions filters
- How does WordPress call functions attached to a certain action hook before calling functions attached to other hooks
- Conditionally call add_action depending on post_type?
- how to change appearence of the content of default post list columns?
- Anonymous function is executed twice in wp_head while added from the_posts filter?
- Explanation for remove_filter used in the below code [closed]
- How to change the blog title with add_filter? details below
- How To Get User Data in Callback Function for pre_user_nicename?
- What’s the best way to split admin-only functionality in the theme’s functions.php file?
- How to get all the predefined do_action() calls from an active theme
- When to use actions and when to use filters
- Is possible dequeue/remove style from wp_footer() hook and add on wp_head() hook?
- Same Conditionals Not Working on Two Different Hooks
- How to call a function or method that is Namespaced using another plugin
- How to change currency programmatically on creating order action?
- add filter login_redirect does not contain original requested redirect
- get_header and hook avoid normal call
- Removing an action, or dequeueing style – Both not working
- How to change the order (priority) of registered filters (or actions) (e.g. for the_content)?
- Replace a word with a word in the URL string
- How to add ‘total’ value to custom column title on the posts list page
- Filter taxonomy admin pagination
- When to use add_action when registering/enqueuing scripts
- Insert term when page is published – avoid duplicates after edits
- Capture post content before page renders
- Shortcodes — Using add_action, add_filter in the shortcode
- Can the wordpress color palettes by changed through Javascript?
- How to properly modify WP Vary or any existing headers?
- How to pass variables to custom filter from multiple functions
- Building a request processor for multi-page forms, etc using $_GET requests
- How to customize the “Insert/edit link” popup box?
- Proper after_setup_theme and wp_head cleanup
- How to get a single hook from wp_head()?
- How can I output all apply_filters and do_action?
- How to allow code block in wordpress comments
- Add a filter inside an action init
- remove_action: how to access to a method in an child class?
- Add a filter to an action [closed]
- why require – does not load filter
- Remove actions/filters that are set with create_function()
- Get The Caller (Plugin / Theme / Core) For All actions & Hook in WordPress
- Most performant/functional way to add actions/filters?
- Alter existing page contents based on url
- Remove tags without a specific meta key from “choose from the most used tags”
- Add/remove CRON action depending on variable
- How to access page variable inside action hook
- Register new user, assign custom role then send email
- How to include add_filter() in a condition based on $post data
- Admin: how to make a custom list filter button send GET queryvars
- What is the action hook to use if you want to capture the new password during password change?
- Use has_filter on comment_post
- Disable sanitize_file_name on upload without modifying functions.php
- What is the action or filter for adding information under the Permalink in Edit Post/Page?
- Making an add_filter() call from within an add_filter() call
- Plugin default settings hook
- How would I use a filter to remove header banner on certain post types
- Action hook to control access to certain parts of my site
- Finding actual functions added to hooks and filters
- output custom Posts on a Page
- Replace Data In Post & Update Meta Field Post Is Saved
- How to redirect a unique link based on login status
- Hook to change the site URL
- Hook to add content after date in post?
- add_action with associative array
- how to use apply filter for Class?
- How can I see exactly what arguments are being passed through a filter so that I may modify them?
- WordPress set featured image to first image of the post
- Does anybody know what the $current_screen ->id for customizer.php is?
- Action for opening attachment or manipulating all attachment links
- Hook inside a hook
- What problems could happen if I replaced add_filter and add_action with the function calling
- Remove action added from class
- Custom search fields and AJAX support
- Adding to an array & passing it through do_action/apply_filters
- Updating User Profile on Registration
- Is this correct usage of filters in WordPress [closed]
- can’t output gray scaled image I’ve created using add_image_size
- Is it possible to make get variable out of filter in Class?
- GET form action. Redirect to self
- Can you call a filter hook by “add_action”?