ms-default-filters.php 関数 ・ 一覧 | WordPress コードリファレンス

ms-default-filters.php マルチサイトのデフォルトのフィルタとアクションを設定します。デフォルトのフックを削除する必要がある場合、このファイルはあなたに優先順位を与えます。タグの説明と使い方。

ms-default-filtersファイルは wp-includes ディレクトリに保存されています。

ms-default-filters.php タグリスト

WordPress wp-includes/ms-default-filters コード一覧

WordPress wp-includes/ms-default-filters.php 関数 リスト

wp-includes/ms-default-filters.php

Template Files

add_action( 'init', 'ms_subdomain_constants' );

//関数
add_action( 'update_option_blog_public', 'update_blog_public', 10, 2 );
add_filter( 'option_users_can_register', 'users_can_register_signup_filter' );
add_filter( 'site_option_welcome_user_email', 'welcome_user_msg_filter' );

//ユーザー
add_filter( 'wpmu_validate_user_signup', 'signup_nonce_check' );
add_action( 'init', 'maybe_add_existing_user_to_blog' );
add_action( 'wpmu_new_user', 'newuser_notify_siteadmin' );
add_action( 'wpmu_activate_user', 'add_new_user_to_blog', 10, 3 );
add_action( 'wpmu_activate_user', 'wpmu_welcome_user_notification', 10, 3 );
add_action( 'after_signup_user', 'wpmu_signup_user_notification', 10, 4 );
add_action( 'network_site_new_created_user',   'wp_send_new_user_notifications' );
add_action( 'network_site_users_created_user', 'wp_send_new_user_notifications' );
add_action( 'network_user_new_created_user',   'wp_send_new_user_notifications' );
add_filter( 'sanitize_user', 'strtolower' );

// ブログ
add_filter( 'wpmu_validate_blog_signup', 'signup_nonce_check' );
add_action( 'wpmu_new_blog', 'wpmu_log_new_registrations', 10, 2 );
add_action( 'wpmu_new_blog', 'newblog_notify_siteadmin', 10, 2 );
add_action( 'wpmu_activate_blog', 'wpmu_welcome_notification', 10, 5 );
add_action( 'after_signup_site', 'wpmu_signup_blog_notification', 10, 7 );

// Register Nonce
add_action( 'signup_hidden_fields', 'signup_nonce_fields' );

// テンプレート
add_action( 'template_redirect', 'maybe_redirect_404' );
add_filter( 'allowed_redirect_hosts', 'redirect_this_site' );

// Administration
add_filter( 'term_id_filter', 'global_terms', 10, 2 );
add_action( 'delete_post', '_update_posts_count_on_delete' );
add_action( 'delete_post', '_update_blog_date_on_post_delete' );
add_action( 'transition_post_status', '_update_blog_date_on_post_publish', 10, 3 );
add_action( 'transition_post_status', '_update_posts_count_on_transition_post_status', 10, 2 );

// カウント
add_action( 'admin_init', 'wp_schedule_update_network_counts');
add_action( 'update_network_counts', 'wp_update_network_counts', 10, 0 );
foreach ( array( 'user_register', 'deleted_user', 'wpmu_new_user', 'make_spam_user', 'make_ham_user' ) as $action )
        add_action( $action, 'wp_maybe_update_network_user_counts', 10, 0 );
foreach ( array( 'make_spam_blog', 'make_ham_blog', 'archive_blog', 'unarchive_blog', 'make_delete_blog', 'make_undelete_blog' ) as $action )
        add_action( $action, 'wp_maybe_update_network_site_counts', 10, 0 );
unset( $action );

// Files
add_filter( 'wp_upload_bits', 'upload_is_file_too_big' );
add_filter( 'import_upload_size_limit', 'fix_import_form_size' );
add_filter( 'upload_mimes', 'check_upload_mimes' );
add_filter( 'upload_size_limit', 'upload_size_limit_filter' );
add_action( 'upload_ui_over_quota', 'multisite_over_quota_message' );

// Mail
add_action( 'phpmailer_init', 'fix_phpmailer_messageid' );

// マルチサイト
add_filter( 'enable_update_services_configuration', '__return_false' );
if ( ! defined('POST_BY_EMAIL') || ! POST_BY_EMAIL ) // back compat constant.
        add_filter( 'enable_post_by_email_configuration', '__return_false' );
if ( ! defined('EDIT_ANY_USER') || ! EDIT_ANY_USER ) // back compat constant.
        add_filter( 'enable_edit_any_user_configuration', '__return_false' );
add_filter( 'force_filtered_html_on_import', '__return_true' );

// WP_HOMEとWP_SITEURLはMSに影響しません。
remove_filter( 'option_siteurl', '_config_wp_siteurl' );
remove_filter( 'option_home',    '_config_wp_home'    );

// オプションの変更によっては、サイトの詳細を更新する必要があります。
add_action( 'update_option_blogname',   'clean_site_details_cache', 10, 0 );
add_action( 'update_option_siteurl',    'clean_site_details_cache', 10, 0 );
add_action( 'update_option_post_count', 'clean_site_details_cache', 10, 0 );
add_action( 'update_option_home',       'clean_site_details_cache', 10, 0 );

// ネットワークのアップグレードがまだ実行されていない場合、ms-files.phpの書き換えが使用されていると仮定します。
add_filter( 'default_site_option_ms_files_rewriting', '__return_true' );

// HTTPリクエストのマルチサイトドメインをホワイトリストに追加する
add_filter( 'http_request_host_is_external', 'ms_allowed_http_request_hosts', 20, 2 );

WordPress バージョン 4.8.1 wp-includes

AC
admin-bar.phpclass.wp-dependencies.php
atomlib.phpclass.wp-scripts.php
author-template.phpclass.wp-styles.php
Bcomment-template.php
bookmark-template.phpcomment.php
bookmark.phpcompat.php
Ccron.php
cache.phpD
canonical.phpdate.php
capabilities.phpdefault-constants.php
category-template.phpdefault-filters.php
category.phpdefault-widgets.php
class-feed.phpdeprecated.php
class-http.phpE
class-IXR.phpembed-template.php
class-json.phpembed.php
class-oembed.phpF
class-phpass.phpfeed-atom-comments.php
class-phpmailer.phpfeed-atom.php
class-pop3.phpfeed-rdf.php
class-requests.phpfeed-rss2-comments.php
class-simplepie.phpfeed-rss2.php
class-smtp.phpfeed-rss.php
class-snoopy.phpfeed.php
class-walker-category-dropdown.phpformatting.php
class-walker-category.phpfunctions.php
class-walker-comment.phpfunctions.wp-scripts.php
class-walker-nav-menu.phpfunctions.wp-styles.php
class-walker-page-dropdown.phpG
class-walker-page.phpgeneral-template.php
class-wp-admin-bar.phpH
class-wp-ajax-response.phphttp.php
class-wp-comment-query.phpK
class-wp-comment.phpkses.php
class-wp-customize-control.phpL
class-wp-customize-manager.phpl10n.php
class-wp-customize-nav-menus.phplink-template.php
class-wp-customize-panel.phpload.php
class-wp-customize-section.phplocale.php
class-wp-customize-setting.phpM
class-wp-customize-widgets.phpmedia-template.php
class-wp-dependency.phpmedia.php
class-wp-editor.phpmeta.php
class-wp-embed.phpms-blogs.php
class-wp-error.phpms-default-constants.php
class-wp-feed-cache-transient.phpms-default-filters.php
class-wp-feed-cache.phpms-deprecated.php
class-wp-hook.phpms-files.php
class-wp-http-cookie.phpms-functions.php
class-wp-http-curl.phpms-load.php
class-wp-http-encoding.phpms-settings.php
class-wp-http-ixr-client.phpN
class-wp-http-proxy.phpnav-menu-template.php
class-wp-http-requests-hooks.phpnav-menu.php
class-wp-http-requests-response.phpO
class-wp-http-response.phpoption.php
class-wp-http-streams.phpP
class-wp-image-editor-gd.phppluggable-deprecated.php
class-wp-image-editor-imagick.phppluggable.php
class-wp-image-editor.phpplugin.php
class-wp-list-util.phppost-formats.php
class-wp-locale-switcher.phppost-template.php
class-wp-locale.phppost-thumbnail-template.php
class-wp-matchesmapregex.phppost.php
class-wp-meta-query.phpQ
class-wp-metadata-lazyloader.phpquery.php
class-wp-network-query.phpR
class-wp-network.phpregistration-functions.php
class-wp-oembed-controller.phpregistration.php
class-wp-post-type.phprest-api.php
class-wp-post.phprevision.php
class-wp-query.phprewrite.php
class-wp-rewrite.phprss-functions.php
class-wp-role.phprss.php
class-wp-roles.phpS
class-wp-session-tokens.phpscript-loader.php
class-wp-simplepie-file.phpsession.php
class-wp-simplepie-sanitize-kses.phpshortcodes.php
class-wp-site-query.phpspl-autoload-compat.php
class-wp-site.phpT
class-wp-tax-query.phptaxonomy.php
class-wp-taxonomy.phptemplate-loader.php
class-wp-term-query.phptemplate.php
class-wp-term.phptheme.php
class-wp-text-diff-renderer-inline.phpU
class-wp-text-diff-renderer-table.phpupdate.php
class-wp-theme.phpuser.php
class-wp-user-meta-session-tokens.phpV
class-wp-user-query.phpvars.php
class-wp-user.phpversion.php
class-wp-walker.phpW
class-wp-widget-factory.phpwidgets.php
class-wp-widget.phpwlwmanifest.xml
class-wp-xmlrpc-server.phpwp-db.php
class-wp.phpwp-diff.php
wp-includes/ フォルダ
wp-includes/ certificateswp-includes/ pomo
wp-includes/ csswp-includes/ random_compat
wp-includes/ customizewp-includes/ Requests
wp-includes/ fontswp-includes/ rest-api
wp-includes/ ID3wp-includes/ SimplePie
wp-includes/ imageswp-includes/ Text
wp-includes/ IXRwp-includes/ theme-compat
wp-includes/ jswp-includes/ widgets