WordPressのテーマやプラグイン作成において、よく利用する関数やグローバル変数などを個人的に整理したコンテンツです。 各関数やグローバル変数は、情報別(データの種類)と目的別(機能の種類)に分類しています。 なお、ほとんどの情報はソースコードを見ながら書き留めた内容であり、確認不足による誤りや更新の遅れによる不正確な内容を含んでいる可能性があります。あらかじめご了承ください。
string | int | false get_the_modified_time( [ string $format = '' [ , int | WP_Post $post = null ] ] )
パラメータ$formatで指定したフォーマットで投稿の更新時刻を取得する。
void remove_post_type_support( string $post_type, string $feature )
投稿タイプからサポートする機能を削除する。
bool | WP_Error wp_is_password_reset_allowed_for_user( int | WP_User $user )
ユーザーがパスワードリセットを許可されているか調べる。
array wp_get_loading_optimization_attributes( string $tag_name, array $attr, string $context )
ローディング関連の最適な属性を取得する。
bool wp_is_development_mode( $mode )
現在の開発モードを調べる。
string wp_get_development_mode()
現在の開発モードを取得する。
bool wp_register_script( string $handle, string | false $src [ , string[] $deps = array() [ , string | bool $ver = false [ , array | bool $args = array() ] ] ] )
スクリプトを登録する。
string wp_cache_set_last_changed( string $group )
キャッシュ・グループの最終変更日時を現在の時刻に更新する。
string | false get_the_term_list( int $post_id, string $taxonomy [ , string $before = '' [ , string $sep = ', ' [ , string $after = '' ] ] ] )
投稿のタームのリンク文字列を取得する。
void | false the_terms( int $post_id, string $taxonomy [ , string $before = '' [ , string $sep = ', ' [ , string $after = '' ] ] ] )
投稿のタームを表示する。