wppaste

ReferenceCost rankingsMost called by core

WordPress 7.1.0PHP 8.4top 100

Most called by core

Cost paid far more often than your own code suggests, because core calls these throughout a request whether or not you do. A change in one of these is felt everywhere.

Counted from the compiled opcodes, identical on any machine running the same PHP version. How this is measured.

  1. 1
    get_permalink()

    Retrieves the full permalink for the current post or post ID.

    queryoptionhook50 callers
    50core callers
  2. 2
    update_option()

    Updates the value of an option that was already added.

    sqlqueryoptionhook50 callers
    50core callers
  3. 3
    esc_url()

    Checks and cleans a URL.

    hook50 callers
    50core callers
  4. 4
    get_option()

    Retrieves an option value based on an option name.

    sqlqueryoptionhook50 callers
    50core callers
  5. 5
    add_query_arg()

    Retrieves a modified URL query string.

    hookloops50 callers
    50core callers
  6. 6
    get_bloginfo()

    Retrieves information about the current site.

    queryoptionhook50 callers
    50core callers
  7. 7
    get_term()

    Gets all term data from database by term ID.

    queryoptionhook50 callers
    50core callers
  8. 8
    wp_die()

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

    queryoptionhook50 callers
    50core callers
  9. 9
    _doing_it_wrong()

    Marks something as being incorrectly called.

    queryoptionhook50 callers
    50core callers
  10. 10
    get_site_transient()

    Retrieves the value of a site transient.

    queryoptionhook50 callers
    50core callers
  11. 11
    do_action()

    Calls the callback functions that have been added to an action hook.

    hook50 callers
    50core callers
  12. 12
    check_ajax_referer()

    Verifies the Ajax request to prevent processing requests external of the blog.

    queryoptionhook50 callers
    50core callers
  13. 13
    wp_enqueue_script()

    Enqueues a script.

    queryoptionhook50 callers
    50core callers
  14. 14
    get_post()

    Retrieves post data given a post ID or post object.

    queryoptionhook50 callers
    50core callers
  15. 15
    get_comment()

    Retrieves comment data given a comment ID or comment object.

    hook50 callers
    50core callers
  16. 16
    apply_filters()

    Calls the callback functions that have been added to a filter hook.

    hook50 callers
    50core callers
  17. 17
    _deprecated_function()

    Marks a function as deprecated and inform when it has been used.

    queryoptionhook50 callers
    50core callers
  18. 18
    _deprecated_argument()

    Marks a function argument as deprecated and inform when it has been used.

    queryoptionhook50 callers
    50core callers
  19. 19
    wp_create_nonce()

    Creates a cryptographic token tied to a specific action, user, user session, and window of time.

    queryoptionhook50 callers
    50core callers
  20. 20
    current_theme_supports()

    Checks a theme's support for a given feature.

    hook50 callers
    50core callers
  21. 21
    wp_enqueue_style()

    Enqueues a CSS stylesheet.

    queryoptionhook50 callers
    50core callers
  22. 22
    get_theme_mod()

    Retrieves theme modification value for the active theme.

    queryoptionhook50 callers
    50core callers
  23. 23
    wp_get_theme()

    Gets a WP_Theme object for a theme.

    queryoptionhook50 callers
    50core callers
  24. 24
    number_format_i18n()

    Converts float number to format based on the locale.

    hook50 callers
    50core callers
  25. 25
    wp_send_json_error()

    Sends a JSON response back to an Ajax request, indicating failure.

    queryoptionhookloops50 callers
    50core callers
  26. 26
    wp_json_encode()

    Encodes a variable into JSON, with some confidence checks.

    queryoptionhook50 callers
    50core callers
  27. 27
    sanitize_title()

    Sanitizes a string into a slug, which can be used in URLs or HTML attributes.

    queryoptionhook50 callers
    50core callers
  28. 28
    rest_ensure_response()

    Ensures a REST response is a response object (for consistency).

    hook50 callers
    50core callers
  29. 29
    get_template_directory_uri()

    Retrieves template directory URI for the active theme.

    queryoptionhook50 callers
    50core callers
  30. 30
    get_theme_support()

    Gets the theme support arguments passed when registering that support.

    50 callers
    50core callers
  31. 31
    remove_filter()

    Removes a callback function from a filter hook.

    50 callers
    50core callers
  32. 32
    add_filter()

    Adds a callback function to a filter hook.

    50 callers
    50core callers
  33. 33
    wp_parse_args()

    Merges user defined arguments into defaults array.

    hook50 callers
    50core callers
  34. 34
    wp_nonce_url()

    Retrieves URL with nonce added to URL query.

    queryoptionhook50 callers
    50core callers
  35. 35
    sanitize_key()

    Sanitizes a string key.

    hook50 callers
    50core callers
  36. 36
    get_post_types()

    Gets a list of all registered post type objects.

    50 callers
    50core callers
  37. 37
    esc_html()

    Escaping for HTML blocks.

    queryoptionhook50 callers
    50core callers
  38. 38
    esc_attr()

    Escaping for HTML attributes.

    queryoptionhook50 callers
    50core callers
  39. 39
    wp_basename()

    i18n-friendly version of basename().

    50 callers
    50core callers
  40. 40
    wp_send_json_success()

    Sends a JSON response back to an Ajax request, indicating success.

    queryoptionhook50 callers
    50core callers
  41. 41
    is_singular()

    Determines whether the query is for an existing single post of any post type (post, attachment, page, custom post types).

    queryoptionhook50 callers
    50core callers
  42. 42
    wp_cache_get()

    Retrieves the cache contents from the cache by key and group.

    50 callers
    50core callers
  43. 43
    sanitize_text_field()

    Sanitizes a string from user input or from the database.

    queryoptionhook50 callers
    50core callers
  44. 44
    get_current_user_id()

    Gets the current user's ID.

    queryhook50 callers
    50core callers
  45. 45
    current_user_can()

    Returns whether the current user has the specified capability.

    queryhook50 callers
    50core callers
  46. 46
    add_action()

    Adds a callback function to an action hook.

    50 callers
    50core callers
  47. 47
    get_post_meta()

    Retrieves a post meta field for the given post ID.

    hook50 callers
    50core callers
  48. 48
    wp_slash()

    Adds slashes to a string or recursively adds slashes to strings within an array.

    50 callers
    50core callers
  49. 49
    is_multisite()

    Determines whether Multisite is enabled.

    50 callers
    50core callers
  50. 50
    get_site_option()

    Retrieve an option value for the current network based on name of option.

    queryoptionhook50 callers
    50core callers
  51. 51
    _x()

    Retrieves translated string with gettext context.

    queryoptionhook50 callers
    50core callers
  52. 52
    sanitize_url()

    Sanitizes a URL for database or redirect usage.

    hook50 callers
    50core callers
  53. 53
    rest_url()

    Retrieves the URL to a REST endpoint.

    queryoptionhook50 callers
    50core callers
  54. 54
    is_wp_error()

    Checks whether the given variable is a WordPress Error.

    hook50 callers
    50core callers
  55. 55
    home_url()

    Retrieves the URL for the current site where the front end is accessible.

    queryoptionhook50 callers
    50core callers
  56. 56
    get_taxonomy()

    Retrieves the taxonomy object of $taxonomy.

    50 callers
    50core callers
  57. 57
    get_post_type_object()

    Retrieves a post type object by name.

    50 callers
    50core callers
  58. 58
    get_post_type()

    Retrieves the post type of the current post or of a given post.

    queryoptionhook50 callers
    50core callers
  59. 59
    admin_url()

    Retrieves the URL to the admin area for the current site.

    queryoptionhook50 callers
    50core callers
  60. 60
    _e()

    Displays translated text.

    queryoptionhook50 callers
    50core callers
  61. 61
    str_starts_with()

    Polyfill for `str_starts_with()` function added in PHP 8.0.

    50 callers
    50core callers
  62. 62
    str_contains()

    Polyfill for `str_contains()` function added in PHP 8.0.

    50 callers
    50core callers
  63. 63
    __()

    Retrieves the translation of $text.

    queryoptionhook50 callers
    50core callers
  64. 64
    trailingslashit()

    Appends a trailing slash.

    50 callers
    50core callers
  65. 65
    is_user_logged_in()

    Determines whether the current visitor is a logged in user.

    queryhook50 callers
    50core callers
  66. 66
    is_admin()

    Determines whether the current request is for an administrative interface page.

    50 callers
    50core callers
  67. 67
    get_userdata()

    Retrieves user info by user ID.

    query50 callers
    50core callers
  68. 68
    did_action()

    Retrieves the number of times an action has been fired during the current request.

    50 callers
    50core callers
  69. 69
    absint()

    Converts a value to non-negative integer.

    50 callers
    50core callers
  70. 70
    wp_unslash()

    Removes slashes from a string or recursively removes slashes from strings within an array.

    50 callers
    50core callers
  71. 71
    get_current_blog_id()

    Retrieves the current site ID.

    50 callers
    50core callers
  72. 72
    get_block_wrapper_attributes()

    Generates a string of attributes by applying to the current block being rendered all of the features that the block supports.

    queryoptionhook50 callers
    50core callers
  73. 73
    rest_authorization_required_code()

    Returns a contextual HTTP error code for authorization failure.

    queryhook50 callers
    50core callers
  74. 74
    register_block_type_from_metadata()

    Registers a block type from the metadata stored in the `block.json` file.

    queryoptionhook50 callers
    50core callers
  75. 75
    get_the_title()

    Retrieves the post title.

    queryoptionhook49 callers
    49core callers
  76. 76
    wp_installing()

    Checks or sets whether WordPress is in "installation" mode.

    49 callers
    49core callers
  77. 77
    str_ends_with()

    Polyfill for `str_ends_with()` function added in PHP 8.0.

    49 callers
    49core callers
  78. 78
    get_query_var()

    Retrieves the value of a query variable in the WP_Query class.

    49 callers
    49core callers
  79. 79
    untrailingslashit()

    Removes trailing forward slashes and backslashes if they exist.

    49 callers
    49core callers
  80. 80
    wp_trigger_error()

    Generates a user-level error/warning/notice/deprecation message.

    hook48 callers
    48core callers
  81. 81
    _n()

    Translates and retrieves the singular or plural form based on the supplied number.

    queryoptionhook48 callers
    48core callers
  82. 82
    get_stylesheet()

    Retrieves name of the current stylesheet.

    queryoptionhook48 callers
    48core callers
  83. 83
    set_url_scheme()

    Sets the scheme for a URL.

    hook47 callers
    47core callers
  84. 84
    wp_list_pluck()

    Plucks a certain field out of each object or array in an array.

    45 callers
    45core callers
  85. 85
    esc_attr_e()

    Displays translated text that has been escaped for safe use in an attribute.

    queryoptionhook45 callers
    45core callers
  86. 86
    post_type_supports()

    Checks a post type's support for a given feature.

    45 callers
    45core callers
  87. 87
    wp_admin_notice()

    Outputs an admin notice.

    queryoptionhook44 callers
    44core callers
  88. 88
    get_user_by()

    Retrieves user info by a given field.

    query44 callers
    44core callers
  89. 89
    wp_get_attachment_url()

    Retrieves the URL for an attachment.

    queryoptionhook43 callers
    43core callers
  90. 90
    register_rest_route()

    Registers a REST API route.

    queryoptionhookloops43 callers
    43core callers
  91. 91
    wp_get_attachment_metadata()

    Retrieves attachment metadata for attachment ID.

    queryoptionhook43 callers
    43core callers
  92. 92
    submit_button()

    Echoes a submit button, with provided text and appropriate class(es).

    queryoptionhook43 callers
    43core callers
  93. 93
    get_the_author_meta()

    Retrieves the requested data of the author of the current post.

    queryhook42 callers
    42core callers
  94. 94
    wp_nonce_field()

    Retrieves or display nonce hidden field for forms.

    queryoptionhook42 callers
    42core callers
  95. 95
    wp_cache_set()

    Saves the data to the cache.

    42 callers
    42core callers
  96. 96
    update_post_meta()

    Updates a post meta field based on the given post ID.

    queryoptionhook41 callers
    41core callers
  97. 97
    stripos()
    41 callers
    41core callers
  98. 98
    wp_get_current_user()

    Retrieves the current user object.

    queryhook41 callers
    41core callers
  99. 99
    post_password_required()

    Determines whether the post requires password and whether a correct password has been provided.

    queryoptionhook40 callers
    40core callers
  100. 100
    self_admin_url()

    Retrieves the URL to the admin area for either the current site or the network depending on context.

    queryoptionhook40 callers
    40core callers