Generally after_setup_theme
is the first action hook available to themes, triggered immediately after the active theme’s functions.php
file is loaded. At this stage, the current user is not yet authenticated.
Related Posts:
- Is there a save_post hook for custom post types?
- Where is the right place to register/enqueue scripts & styles
- Difference between do_action and add_action
- Difference between after_setup_theme and init action hooks?
- get $post in init filter or action?
- How to intercept a 404 error
- Move excerpt meta box to above content editor
- Trigger custom action when setting button pressed
- Hook after image is uploaded and image sizes generated
- Which hook if user profile information is updated?
- How to call a REST endpoint when a post is published?
- __NAMESPACE__ with register_activation_hook
- Are hooks called synchronously?
- Disable block from editor based on post type
- Difference between hooks Plugin_loaded and admin_int?
- Hook/notify when any option or setting is added or updated
- Which hooks is this? add_action(‘wp’,
- Make W3 Total Cache “Empty All Caches” function purge varnish [closed]
- admin_notices after register_uninstall / deactivate_hook
- How to inject content after
- How to debug removal of rewrite rule flushing?
- function ‘wp_enable_block_templates’ not found
- How can I add a default description to uploaded files?
- Hook Widget to Woo Theme in functions.php
- Security around save_post hook
- How to pass arguments to add_action() [duplicate]
- How to use the post_updated hook before and after arguments
- What is the best filter where to use register_block_type?
- Check if do_action(‘custom_action’) is hooked into?
- I don’t understand why I shoud use lostpassword_url hook?
- How to get session token of current user in wp_login hook?
- wp_login Action hook with conditional tag
- Can I remove WooCommerce main content hook?
- How to alter the query using pre_get_posts hook and is_post_type_archive
- Hook any php file into the wordpress api
- WP CLI Get all Enqueued Scripts and Styles
- Delay an action until current action is completed
- How to properly setup an activation hook
- How to remove scripts/style added to customize_controls_enqueue_scripts hook by current active theme
- Help to change the text for new website notification (wpmu_welcome_notification)
- How to remove query string from current page URL?
- Plugins rewrite rules the right way
- Strange behaviour with add_{$meta_type}_metadata | add_post_metadata filter
- Plugin init hook
- Is there a hook that fires when a row of wp_sitemeta table is updated?
- Add nofollow to custom widget posts
- Change Password Confirmed Email Text
- How to check post type when using sanitize_title hook?
- Hook when editing user
- get_post_metadata causing some meta data to fail
- Register form: add custom field BEFORE default fields
- Custom Front End Registration – How Does the Key work in the Password Set Request?
- How to change the default mail when admin approuved an user?
- Lock user information once fields have been filled in
- How do I prevent term from being created on create_term hook?
- save_post hook to add terms getting deleted when using bulk edit
- Hook function prints output twice
- Hook priority in admin with custom plugin
- Add Different Actions To Different Page’s wp_footer
- Getting the post ID in parse_query
- Remove genesis_404 hook from genesis_loop [closed]
- What hooks do I need to hook into to capture ever wp_user creation/change?
- Is there a before_save_post hook or something similar
- Neccessary to call add_submenu_page and add_menu_page from admin_menu hook?
- Adding custom Bulk Actions
- Print results of a WP_Query to wp-admin/upload.php within ‘delete_attachment’ hook?
- upgrader_process_complete filter not fired using ajax updates
- How to debug wordpress hooked functions?
- Is there a way to Insert a post to post list?
- “Intercept” enqueing of 3rd party’s JS file
- How to call do_action() to pass arguments to hooked functions that take different number of args?
- WP hook to add custom content after the_title()
- Is it likely that do_action will have unexpected results?
- How to export category name and category link in wordpress json
- Error later wordpress 5.3.2 update. Please help
- How to abort a save operation with a WordPress hook?
- wp_get_current_user Not working
- is_page not triggering
- admin_post_(action) hook create console log error
- Check if front page within function passed to action
- Hook after creating a post and retrieve infos from this post immediatly
- Display custom debug info inside page and not before head
- $new_pass always returns null – password_reset hook
- How to resolve 500 error in post listing page?
- Hide post completely and still reach it via cURL
- Problem in register activation hook and Copying folder
- theme functions (hooks)
- frontend show edit profile with selected custom options
- How to change Akismet commenter privacy notice?
- How To Apply Different Styles To All Blocks Based on Post Meta Value?
- change position of element using hook [closed]
- The acction hook stop working if i move it from plugin file to theme’s functions.php file
- How to add action in wordpress custom plugin?
- How can I add new attributes in a Class when my addon is active?
- add_action failed to display function by a plugin
- wp_footer content appearing in admin area
- How can I get the ID before after_setup_theme?
- Hook on opening a media/document
- Hooks to trigger a callback when adding, removing, rearranging or updating a widget in the widget area
- Why does before_delete_post run when opening a post in the backend?