wppaste

ReferenceCost rankingsMost 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.

  1. 1
    comment_form()

    Outputs a complete commenting form for use within a template.

    queryoptionhookloops2 callers
    18hooks
  2. 2
    wp_insert_user()

    Inserts a user into the database.

    sqlqueryoptionhookloops4 callers
    18hooks
  3. 3
    wp_insert_post()

    Inserts or updates a post in the database.

    sqlqueryoptionhook21 callers
    16hooks
  4. 4
    wp_update_term()

    Updates term based on arguments provided.

    sqlqueryoptionhook8 callers
    13hooks
  5. 5
    wp_insert_term()

    Adds a new term to the database.

    sqlqueryoptionhook11 callers
    12hooks
  6. 6
    login_header()

    Outputs the login page header.

    queryoptionhookloops
    12hooks
  7. 7
    media_upload_form()

    Outputs the legacy media upload form.

    queryoptionhook1 caller
    10hooks
  8. 8
    wp_mail()

    Sends an email, similar to PHP's mail function.

    mailqueryoptionhook28 callers
    10hooks
  9. 9
    wp_enqueue_media()

    Enqueues all scripts, styles, settings, and templates necessary to use all media JS APIs.

    queryoptionhook7 callers
    9hooks
  10. 10
    feed_links_extra()

    Displays the links to the extra feeds such as category feeds.

    queryoptionhook
    9hooks
  11. 11
    wp_tinymce_inline_scripts()

    Adds inline scripts required for the TinyMCE in the block editor.

    queryoptionhookloops
    9hooks
  12. 12
    wp_iframe()

    Outputs the iframe to display the media upload page.

    queryoptionhook3 callers
    9hooks
  13. 13
    wp_maybe_transition_site_statuses_on_update()

    Triggers actions on site status updates.

    hook
    9hooks
  14. 14
    sanitize_term_field()

    Sanitizes the field value in the term based on the context.

    queryoptionhook8 callers
    9hooks
  15. 15
    sanitize_post_field()

    Sanitizes a post field based on context.

    queryoptionhook5 callers
    9hooks
  16. 16
    wp_print_media_templates()

    Prints the templates used in the media manager.

    queryoptionhookloops
    8hooks
  17. 17
    export_wp()

    Generates the WXR export file for download.

    sqlqueryoptionhookloops
    8hooks
  18. 18
    wp_handle_comment_submission()

    Handles the submission of a comment, usually posted to wp-comments-post.php via a comment form.

    queryoptionhook
    8hooks
  19. 19
    iframe_header()

    Generic Iframe header for use with Thickbox.

    queryoptionhook2 callers
    8hooks
  20. 20
    wp_update_user()

    Updates a user in the database.

    mailqueryoptionhookloops6 callers
    7hooks
  21. 21
    retrieve_password()

    Handles sending a password retrieval email to a user.

    mailqueryoptionhook1 caller
    7hooks
  22. 22
    wp_delete_term()

    Removes a term from the database.

    sqlqueryoptionhookloops7 callers
    7hooks
  23. 23
    wp_delete_post()

    Trashes or deletes a post or page.

    sqlqueryoptionhookloops29 callers
    7hooks
  24. 24
    wp_nav_menu()

    Displays a navigation menu.

    queryoptionhookloops2 callers
    7hooks
  25. 25
    wp_dashboard_setup()

    Registers dashboard widgets.

    httpqueryoptionhookloops
    7hooks
  26. 26
    _wp_privacy_send_erasure_fulfillment_notification()

    Notifies the user when their erasure request is fulfilled.

    mailqueryoptionhook
    7hooks
  27. 27
    wp_dashboard_primary()

    'WordPress Events and News' dashboard widget.

    queryoptionhook2 callers
    7hooks
  28. 28
    wp_filter_comment()

    Filters and sanitizes comment data.

    hook3 callers
    7hooks
  29. 29
    update_option()

    Updates the value of an option that was already added.

    sqlqueryoptionhook50 callers
    6hooks
  30. 30
    wp_set_auth_cookie()

    Sets the authentication cookies for a given user ID.

    queryoptionhook3 callers
    6hooks
  31. 31
    twentynineteen_custom_colors_css()

    Generates the CSS for the current primary color.

    queryoptionhook2 callers
    6hooks
  32. 32
    wp_allow_comment()

    Validates whether this comment is allowed to be made.

    sqlqueryoptionhook2 callers
    6hooks
  33. 33
    load_textdomain()

    Loads a .mo file into the text domain $domain.

    queryoptionhookloops5 callers
    6hooks
  34. 34
    wp_validate_auth_cookie()

    Validates authentication cookie.

    queryoptionhook3 callers
    6hooks
  35. 35
    wp_die()

    Kills WordPress execution and displays HTML page with an error message.

    queryoptionhook50 callers
    6hooks
  36. 36
    sanitize_user_field()

    Sanitizes user field based on context.

    queryoptionhook2 callers
    6hooks
  37. 37
    wp_font_library_render_page()

    Render the font-library page.

    queryoptionhook1 caller
    6hooks
  38. 38
    wp_options_connectors_render_page()

    Render the options-connectors page.

    queryoptionhook1 caller
    6hooks
  39. 39
    wp_default_scripts()

    Registers all WordPress scripts.

    queryoptionhook
    5hooks
  40. 40
    twentytwenty_get_post_meta()

    Retrieves the post meta.

    queryoptionhook1 caller
    5hooks
  41. 41
    wp_setup_nav_menu_item()

    Decorates a menu item object with the shared navigation menu item properties.

    queryoptionhook3 callers
    5hooks
  42. 42
    delete_metadata()

    Deletes metadata for the specified object.

    sqlhook14 callers
    5hooks
  43. 43
    _wp_privacy_send_request_confirmation_notification()

    Notifies the site administrator via email when a request is confirmed.

    mailqueryoptionhook
    5hooks
  44. 44
    wp_unique_post_slug()

    Computes a unique slug for the post, when given the desired slug and some post details.

    sqlqueryoptionhookloops5 callers
    5hooks
  45. 45
    wp_privacy_send_personal_data_export_email()

    Send an email to the user with a link to the personal data export file

    mailqueryoptionhook1 caller
    5hooks
  46. 46
    update_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 callers
    5hooks
  47. 47
    register_new_user()

    Handles registering a new user.

    queryoptionhook
    5hooks
  48. 48
    update_metadata_by_mid()

    Updates metadata by meta ID.

    sqlqueryoptionhook4 callers
    5hooks
  49. 49
    wp_notify_postauthor()

    Notifies an author (and/or others) of a comment/trackback/pingback on a post.

    mailqueryoptionhookloops1 caller
    5hooks
  50. 50
    wp_dashboard_right_now()

    Dashboard widget that displays some basic stats about the site.

    queryoptionhookloops
    5hooks
  51. 51
    delete_metadata_by_mid()

    Deletes metadata by meta ID.

    hook11 callers
    5hooks
  52. 52
    wp_notify_moderator()

    Notifies the moderator of the site about a new comment that is awaiting approval.

    mailsqlqueryoptionloops1 caller
    5hooks
  53. 53
    set_transient()

    Sets/updates the value of a transient.

    queryoptionhook22 callers
    5hooks
  54. 54
    wp_publish_post()

    Publishes a post by transitioning the post status.

    queryoptionhookloops1 caller
    5hooks
  55. 55
    _print_emoji_detection_script()

    Prints inline Emoji detection script.

    filesystemqueryoptionhook1 caller
    5hooks
  56. 56
    dynamic_sidebar()

    Displays dynamic sidebar.

    queryoptionhookloops2 callers
    5hooks
  57. 57
    wp_delete_site()

    Deletes a site from the database.

    sqlqueryoptionhookloops1 caller
    5hooks
  58. 58
    set_site_transient()

    Sets/updates the value of a site transient.

    queryoptionhook20 callers
    5hooks
  59. 59
    wp_save_image_file()

    Saves image to file.

    queryoptionhook1 caller
    5hooks
  60. 60
    get_adjacent_post()

    Retrieves the adjacent post.

    sqlqueryoptionhookloops7 callers
    4hooks
  61. 61
    register_and_do_post_meta_boxes()

    Registers the default post meta boxes, and runs the `do_meta_boxes` actions.

    queryoptionhook
    4hooks
  62. 62
    comments_template()

    Loads the comment template specified in $file.

    filesystemsqlqueryoptionloops1 caller
    4hooks
  63. 63
    _wp_handle_upload()

    Handles PHP uploads in WordPress.

    filesystemqueryoptionhook2 callers
    4hooks
  64. 64
    download_url()

    Downloads a URL to a local temporary file using the WordPress HTTP API.

    httpfilesystemqueryoption3 callers
    4hooks
  65. 65
    wp_new_user_notification()

    Emails login credentials to a newly-registered user.

    mailqueryoptionhook1 caller
    4hooks
  66. 66
    wp_get_attachment_image()

    Gets an HTML img element representing an image attachment.

    queryoptionhookloops13 callers
    4hooks
  67. 67
    edit_user()

    Edit user settings based on contents of $_POST

    httpmailqueryoption2 callers
    4hooks
  68. 68
    wp_login_form()

    Provides a simple login form for use anywhere within WordPress.

    queryoptionhook1 caller
    4hooks
  69. 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.

    queryoptionhook
    4hooks
  70. 70
    wp_video_shortcode()

    Builds the Video shortcode output.

    queryoptionhookloops3 callers
    4hooks
  71. 71
    wp_audio_shortcode()

    Builds the Audio shortcode output.

    queryoptionhookloops3 callers
    4hooks
  72. 72
    wp_get_archives()

    Displays archive links based on type and format.

    sqlqueryoptionhookloops3 callers
    4hooks
  73. 73
    wp_delete_attachment()

    Trashes or deletes an attachment.

    sqlqueryoptionhookloops4 callers
    4hooks
  74. 74
    wp_ajax_save_widget()

    Handles saving a widget via AJAX.

    queryoptionhookloops
    4hooks
  75. 75
    core_auto_updates_settings()

    Display WordPress auto-updates settings.

    queryoptionhook
    4hooks
  76. 76
    wp_mime_type_icon()

    Retrieves the icon for a MIME type or attachment.

    queryoptionhookloops5 callers
    4hooks
  77. 77
    login_footer()

    Outputs the footer for the login page.

    httpqueryoptionhook
    4hooks
  78. 78
    add_option()

    Adds a new option.

    sqlqueryoptionhook9 callers
    4hooks
  79. 79
    page_attributes_meta_box()

    Displays page attributes form fields.

    queryoptionhook
    4hooks
  80. 80
    wp_get_loading_optimization_attributes()

    Gets loading optimization attributes.

    queryoptionhook6 callers
    4hooks
  81. 81
    wp_ajax_crop_image()

    Handles cropping an image via AJAX.

    queryoptionhook
    4hooks
  82. 82
    wp_get_document_title()

    Returns document title for the current page.

    queryoptionhook3 callers
    4hooks
  83. 83
    get_search_form()

    Displays search form.

    queryoptionhook1 caller
    4hooks
  84. 84
    get_option()

    Retrieves an option value based on an option name.

    sqlqueryoptionhook50 callers
    4hooks
  85. 85
    get_network_option()

    Retrieves a network's option value based on the option name.

    sqlqueryoptionhook12 callers
    4hooks
  86. 86
    wp_authenticate_application_password()

    Authenticates the user using an application password.

    queryoptionhookloops1 caller
    4hooks
  87. 87
    get_term_link()

    Generates a permalink for a taxonomy term archive.

    queryoptionhookloops22 callers
    4hooks
  88. 88
    map_meta_cap()

    Maps a capability to the primitive capabilities required of the given user to satisfy the capability being checked.

    queryoptionhook3 callers
    4hooks
  89. 89
    get_template_hierarchy()

    Gets the template hierarchy for the given template slug to be created.

    hookloops1 caller
    4hooks
  90. 90
    wp_trim_excerpt()

    Generates an excerpt from the content, if needed.

    queryoptionhook
    4hooks
  91. 91
    wp_ajax_heartbeat()

    Handles the Heartbeat API via AJAX.

    queryoptionhook
    4hooks
  92. 92
    wp_update_comment_count_now()

    Updates the comment count for the post.

    sqlqueryoptionhook1 caller
    4hooks
  93. 93
    wp_untrash_post()

    Restores a post from the Trash.

    queryoptionhook1 caller
    4hooks
  94. 94
    get_the_post_thumbnail()

    Retrieves the post thumbnail.

    queryoptionhook5 callers
    4hooks
  95. 95
    wp_raise_memory_limit()

    Attempts to raise the PHP memory limit for memory intensive processes.

    hook5 callers
    4hooks
  96. 96
    _update_post_term_count()

    Updates term count based on object types of the current taxonomy.

    hookloops1 caller
    4hooks
  97. 97
    post_submit_meta_box()

    Displays post submit form fields.

    queryoptionhook
    3hooks
  98. 98
    wp_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 callers
    3hooks
  99. 99
    wptexturize()

    Replaces common plain text characters with formatted entities.

    queryoptionhookloops9 callers
    3hooks
  100. 100
    populate_network()

    Populate network settings.

    httpsqlqueryoption
    3hooks