Reference › Cost rankings › Most hooks fired in one call
WordPress 7.1.0PHP 8.4top 100
Most hooks fired in one call
Every hook is an opening for third-party code, and nothing in core bounds what that code costs. These are the functions where a slow site is most often not core's fault.
Counted from the compiled opcodes, identical on any machine running the same PHP version. How this is measured.
- 1comment_form()
Outputs a complete commenting form for use within a template.
queryoptionhookloops2 callers18hooks - 218hooks
- 316hooks
- 413hooks
- 512hooks
- 612hooks
- 710hooks
- 810hooks
- 9wp_enqueue_media()
Enqueues all scripts, styles, settings, and templates necessary to use all media JS APIs.
queryoptionhook7 callers9hooks - 109hooks
- 11wp_tinymce_inline_scripts()
Adds inline scripts required for the TinyMCE in the block editor.
queryoptionhookloops9hooks - 129hooks
- 139hooks
- 14sanitize_term_field()
Sanitizes the field value in the term based on the context.
queryoptionhook8 callers9hooks - 159hooks
- 168hooks
- 178hooks
- 18wp_handle_comment_submission()
Handles the submission of a comment, usually posted to wp-comments-post.php via a comment form.
queryoptionhook8hooks - 198hooks
- 207hooks
- 217hooks
- 227hooks
- 237hooks
- 247hooks
- 257hooks
- 26_wp_privacy_send_erasure_fulfillment_notification()
Notifies the user when their erasure request is fulfilled.
mailqueryoptionhook7hooks - 277hooks
- 287hooks
- 296hooks
- 306hooks
- 31twentynineteen_custom_colors_css()
Generates the CSS for the current primary color.
queryoptionhook2 callers6hooks - 326hooks
- 336hooks
- 346hooks
- 35wp_die()
Kills WordPress execution and displays HTML page with an error message.
queryoptionhook50 callers6hooks - 366hooks
- 376hooks
- 386hooks
- 395hooks
- 405hooks
- 41wp_setup_nav_menu_item()
Decorates a menu item object with the shared navigation menu item properties.
queryoptionhook3 callers5hooks - 425hooks
- 43_wp_privacy_send_request_confirmation_notification()
Notifies the site administrator via email when a request is confirmed.
mailqueryoptionhook5hooks - 44wp_unique_post_slug()
Computes a unique slug for the post, when given the desired slug and some post details.
sqlqueryoptionhookloops5 callers5hooks - 45wp_privacy_send_personal_data_export_email()
Send an email to the user with a link to the personal data export file
mailqueryoptionhook1 caller5hooks - 46update_metadata()
Updates metadata for the specified object. If no value already exists for the specified object ID and metadata key, the metadata will be added.
sqlqueryoptionhookloops7 callers5hooks - 475hooks
- 485hooks
- 49wp_notify_postauthor()
Notifies an author (and/or others) of a comment/trackback/pingback on a post.
mailqueryoptionhookloops1 caller5hooks - 50wp_dashboard_right_now()
Dashboard widget that displays some basic stats about the site.
queryoptionhookloops5hooks - 515hooks
- 52wp_notify_moderator()
Notifies the moderator of the site about a new comment that is awaiting approval.
mailsqlqueryoptionloops1 caller5hooks - 535hooks
- 545hooks
- 55_print_emoji_detection_script()
Prints inline Emoji detection script.
filesystemqueryoptionhook1 caller5hooks - 565hooks
- 575hooks
- 585hooks
- 595hooks
- 604hooks
- 61register_and_do_post_meta_boxes()
Registers the default post meta boxes, and runs the `do_meta_boxes` actions.
queryoptionhook4hooks - 62comments_template()
Loads the comment template specified in $file.
filesystemsqlqueryoptionloops1 caller4hooks - 634hooks
- 64download_url()
Downloads a URL to a local temporary file using the WordPress HTTP API.
httpfilesystemqueryoption3 callers4hooks - 65wp_new_user_notification()
Emails login credentials to a newly-registered user.
mailqueryoptionhook1 caller4hooks - 66wp_get_attachment_image()
Gets an HTML img element representing an image attachment.
queryoptionhookloops13 callers4hooks - 674hooks
- 68wp_login_form()
Provides a simple login form for use anywhere within WordPress.
queryoptionhook1 caller4hooks - 69_admin_notice_post_locked()
Outputs the HTML for the notice to say that someone else is editing or has taken over editing of this post.
queryoptionhook4hooks - 704hooks
- 714hooks
- 724hooks
- 734hooks
- 744hooks
- 754hooks
- 764hooks
- 774hooks
- 784hooks
- 794hooks
- 80wp_get_loading_optimization_attributes()
Gets loading optimization attributes.
queryoptionhook6 callers4hooks - 814hooks
- 824hooks
- 834hooks
- 844hooks
- 85get_network_option()
Retrieves a network's option value based on the option name.
sqlqueryoptionhook12 callers4hooks - 86wp_authenticate_application_password()
Authenticates the user using an application password.
queryoptionhookloops1 caller4hooks - 874hooks
- 88map_meta_cap()
Maps a capability to the primitive capabilities required of the given user to satisfy the capability being checked.
queryoptionhook3 callers4hooks - 89get_template_hierarchy()
Gets the template hierarchy for the given template slug to be created.
hookloops1 caller4hooks - 904hooks
- 914hooks
- 924hooks
- 934hooks
- 944hooks
- 95wp_raise_memory_limit()
Attempts to raise the PHP memory limit for memory intensive processes.
hook5 callers4hooks - 96_update_post_term_count()
Updates term count based on object types of the current taxonomy.
hookloops1 caller4hooks - 973hooks
- 98wp_prepare_attachment_for_js()
Prepares an attachment post object for JS, where it is expected to be JSON-encoded and fit into an Attachment model.
queryoptionhookloops7 callers3hooks - 99wptexturize()
Replaces common plain text characters with formatted entities.
queryoptionhookloops9 callers3hooks - 1003hooks