商品カテゴリー すべての商品 WordPressプラグイン PHPツール Javascriptツール

WordPressフィルターフックの処理回数

▼調査対象
WordPress v6.7.1 (最新版:2024/12/19現在)

フィルター処理の実際の処理回数を調べてみました。
有効プラグインなし、表示だけのテーマを作成し調べています。
固定画面を表示した場合に実行されるフィルター処理の回数です。
フックするとその回数実行されます。

順位 フィルタ名 処理回数 内容
1gettextwp-includes/l10n.php553 多言語化処理。訳文、原文、テキストドメイン(翻訳ファイルのファイル名)から訳文を返す。
コード内の__()が対応箇所
2gettext_with_contextwp-includes/l10n.php495 多言語化処理。訳文、原文、コンテキスト、テキストドメイン(翻訳ファイルのファイル名)から訳文を返す。
コンテキスト(文脈)によって訳を変える場合に使用。 
コード内の_x()が対応箇所
3alloptionswp-includes/option.php217 すべてのオプション設定の配列を受け取って返す。
4pre_wp_load_alloptionswp-includes/option.php217
5pre_optionwp-includes/option.php216
6should_load_separate_core_block_assetswp-includes/script-loader.php198
7wp_is_rest_endpointwp-includes/rest-api.php198 REST APIリクエストかの判定用
8block_type_metadatawp-includes/blocks/index.php94 block.jsonのメタデータを受け取って返す。
9register_block_type_argswp-includes/class-wp-block-type.php94
10block_type_metadata_settingswp-includes/blocks.php93
11set_url_schemewp-includes/link-template.php49
12interactivity_process_directiveswp-includes/class-wp-block.php42
13pre_render_blockwp-includes/blocks.php42
14render_blockwp-includes/class-wp-block.php42
15render_block_contextwp-includes/blocks.php42
16render_block_datawp-includes/blocks.php42
17stylesheetwp-includes/theme.php38
18sanitize_keywp-includes/formatting.php31
19site_urlwp-includes/link-template.php27
20attribute_escapewp-includes/formatting.php22
21get_block_type_uses_contextwp-includes/class-wp-block-type.php22
22is_post_type_viewablewp-includes/post.php21
23home_urlwp-includes/link-template.php20
24esc_htmlwp-includes/formatting.php17
25register_post_type_argswp-includes/class-wp-post-type.php16
26sanitize_titlewp-includes/formatting.php16
27includes_urlwp-includes/link-template.php14
28no_texturize_shortcodeswp-includes/formatting.php12
29no_texturize_tagswp-includes/formatting.php12
30clean_urlwp-includes/formatting.php11
31admin_urlwp-includes/link-template.php10
32safecss_filter_attr_allow_csswp-includes/kses.php10
33sanitize_text_fieldwp-includes/formatting.php10
34querywp-includes/class-wpdb.php9
35wp_kses_uri_attributeswp-includes/kses.php9
36register_taxonomy_argswp-includes/class-wp-taxonomy.php8
37theme_rootwp-includes/theme.php7
38bloginfowp-includes/general-template.php6
39kses_allowed_protocolswp-includes/functions.php6
40map_meta_capwp-includes/capabilities.php6
41rest_url_prefixwp-includes/rest-api.php6
42user_has_capwp-includes/class-wp-user.php6
43is_protected_metawp-includes/meta.php5
44localewp-includes/l10n.php5
45pre_get_scheduled_eventwp-includes/cron.php5
46register_meta_argswp-includes/meta.php5
47theme_file_pathwp-includes/global-styles-and-settings.php5
48get_post_statuswp-includes/post.php4
49ngettextwp-includes/l10n.php4
50stylesheet_directorywp-includes/theme.php4
51user_trailingslashitwp-includes/link-template.php4
52wp_resource_hintswp-includes/general-template.php4
53_get_page_linkwp-includes/link-template.php3
54content_paginationwp-includes/class-wp-query.php3
55get_page_uriwp-includes/post.php3
56is_post_status_viewablewp-includes/post.php3
57nonce_lifewp-includes/pluggable.php3
58nonce_user_logged_outwp-includes/pluggable.php3
59page_linkwp-includes/link-template.php3
60post_password_requiredwp-includes/post-template.php3
61saltwp-includes/pluggable.php3
62show_admin_barwp-includes/admin-bar.php3 管理者用のツールバーの表示非表示を返す。
63sidebars_widgetswp-includes/widgets.php3
64templatewp-includes/theme.php3
65template_directorywp-includes/theme.php3
66wp_should_replace_insecure_home_urlwp-includes/https-migration.php3
67block_parser_classwp-includes/blocks.php2
68content_urlwp-includes/link-template.php2
69print_scripts_arraywp-includes/class-wp-scripts.php2
70print_styles_arraywp-includes/class-wp-styles.php2
71rest_urlwp-includes/rest-api.php2
72single_post_titlewp-includes/general-template.php2
73styles_inline_size_limitwp-includes/script-loader.php2
74stylesheet_directory_uriwp-includes/theme.php2
75the_contentwp-includes/blocks/post-content.php2
76theme_root_uriwp-includes/theme.php2
77wp_parse_strwp-includes/formatting.php2
78wp_theme_json_data_blockswp-includes/class-wp-theme-json-resolver.php2
79wp_theme_json_data_defaultwp-includes/class-wp-theme-json-resolver.php2
80wp_theme_json_data_themewp-includes/class-wp-theme-json-resolver.php2
81wp_theme_json_data_userwp-includes/class-wp-theme-json-resolver.php2
82wp_theme_json_get_style_nodeswp-includes/class-wp-theme-json.php2
83wp_using_themeswp-includes/load.php2
85bloginfo_urlwp-includes/general-template.php1
86determine_current_userwp-includes/user.php1
87determine_localewp-includes/l10n.php1
88do_parse_requestwp-includes/class-wp.php1
89do_shortcode_tagwp-includes/shortcodes.php1
90dynamic_sidebar_has_widgetswp-includes/widgets.php1
91excerpt_allowed_blockswp-includes/blocks.php1
92excerpt_allowed_wrapper_blockswp-includes/blocks.php1
93excerpt_lengthwp-includes/blocks/latest-posts.php1
94excerpt_morewp-includes/formatting.php1
95extra_theme_headerswp-includes/deprecated.php1
96feed_links_extra_argswp-includes/general-template.php1
97feed_links_extra_show_post_comments_feedwp-includes/general-template.php1
98feed_links_show_comments_feedwp-includes/general-template.php1
99get_canonical_urlwp-includes/link-template.php1
100get_site_icon_urlwp-includes/general-template.php1
101get_the_excerptwp-includes/post-template.php1
102has_post_thumbnailwp-includes/post-thumbnail-template.php1
103heartbeat_settingswp-includes/script-loader.php1
104is_active_sidebarwp-includes/widgets.php1
105js_escapewp-includes/formatting.php1
106language_attributeswp-includes/general-template.php1
107locale_stylesheet_uriwp-includes/theme.php1
108mejs_settingswp-includes/script-loader.php1
109page_template_hierarchywp-includes/block-template-utils.php1
110pings_openwp-includes/comment-template.php1
111post_format_rewrite_basewp-includes/taxonomy.php1
112post_thumbnail_idwp-includes/post-thumbnail-template.php1
113pre_determine_localewp-includes/l10n.php1
114pre_do_shortcode_tagwp-includes/shortcodes.php1
115pre_get_ready_cron_jobswp-includes/cron.php1
116pre_handle_404wp-includes/class-wp.php1
117print_footer_scriptswp-includes/script-loader.php1
118print_head_scriptswp-includes/script-loader.php1
119print_late_styleswp-includes/script-loader.php1
120query_varswp-includes/class-wp.php1
121requestwp-includes/class-wp.php1
122run_wptexturizewp-includes/formatting.php1
123smilieswp-includes/functions.php1
124split_the_querywp-includes/class-wp-query.php1
125status_headerwp-includes/functions.php1
126stylesheet_uriwp-includes/theme.php1
127template_includewp-includes/template-loader.php1
128the_titlewp-admin/includes/class-walker-nav-menu-checklist.php1 投稿タイトル、投稿IDから投稿タイトルを返す。
129wp_allow_query_attachment_by_filenamewp-includes/class-wp-query.php1
130wp_audio_shortcode_librarywp-includes/media.php1
131wp_cache_themes_persistentlywp-includes/theme.php1
132wp_datewp-includes/functions.php1
133wp_get_custom_csswp-includes/theme.php1
134wp_headerswp-includes/class-wp.php1
135wp_img_tag_add_auto_sizeswp-includes/media.php1
136wp_is_application_passwords_availablewp-includes/user.php1
137wp_lazy_loading_enabledwp-includes/media.php1
138wp_preload_resourceswp-includes/general-template.php1
139wp_robotswp-includes/robots-template.php1
140wp_sitemaps_enabledwp-includes/sitemaps/class-wp-sitemaps.php1
141wp_sitemaps_stylesheet_index_urlwp-includes/sitemaps/class-wp-sitemaps-renderer.php1
142wp_sitemaps_stylesheet_urlwp-includes/sitemaps/class-wp-sitemaps-renderer.php1
143wp_spaces_regexpwp-includes/formatting.php1
144wp_titlewp-includes/general-template.php1
145wp_title_partswp-includes/general-template.php1
146wp_trim_excerptwp-includes/formatting.php1
147wp_trim_wordswp-includes/formatting.php1
148wp_video_extensionswp-includes/media.php1
149wp_video_shortcode_librarywp-includes/media.php1
著者情報
著者情報

Webサイト開発者。PHP/Javascript の開発実績2,000件以上。クラウドソーシング経由では700件ほどの受注実績あり。