WordPressのフィルターフック、アクションフックの動作原理と使い方を実例多めに解説した資料です。
໊ݹͰԶͷϑοΫ͕͜Μͳʹ؆୯ͳΘ͚͕ͳ͍ɻԶͷϑοΫ͕͜Μͳʹ؆୯ͳΘ͚͕ͳ͍ɻore no hook ga konna ni kantan na wakega nai.8PSE'FT/BHPZB!)JTTZ/$1
View Slide
͜Μͳઆ໌Έͨ͜ͱ͋Γ·ͤΜ͔ʁfunction new_excerpt_more($more) {return '';}add_filter('excerpt_more','new_excerpt_more');ൈਮͷ>Λফ͢ʹɺGVODUJPOTQIQʹҎԼͷίʔυΛίϐʔˍϖʔετ͠·͠ΐ͏ɻ2
͜Εɺ࣮ʮϑοΫʯͱ͍͍·͢ɻfunction new_excerpt_more($more) {return '';}add_filter('excerpt_more','new_excerpt_more');ൈਮͷ>Λফ͢ʹɺGVODUJPOTQIQʹҎԼͷίʔυΛίϐʔˍϖʔετ͠·͠ΐ͏ɻ3
ϑοΫͷதͰ͜ΕʮϑΟϧλʔϑοΫʯfunction new_excerpt_more($more) {return '';}add_filter('excerpt_more','new_excerpt_more');ൈਮͷ>Λফ͢ʹɺGVODUJPOTQIQʹҎԼͷίʔυΛίϐʔˍϖʔετ͠·͠ΐ͏ɻ4
ࠓʮϑοΫʯͷ͘͠Έʹ͍ͭͯͷ͓ɻ5
ϑοΫʹ̎ͭ͋ΔɻΞΫγϣϯϑοΫϑΟϧλʔϑοΫ6
8PSE1SFTTΛྉཧͩͱߟ͑ͯΈ·͠ΐ͏7
8PSE1SFTTͷॲཧϨγϐ௨Γ࡞ΒΕΔྉཧͷΑ͏ͳͷ8
όλʔHΛࠞͥΔɻ࠭HΛՃ͑Δɻ;ΜΘΓ͢Δ·ͰࠞͥΔɻόχϥΤοηϯεΛՃ͑Δɻ9
όλʔHΛࠞͥΔɻ࠭HΛՃ͑Δɻ;ΜΘΓ͢Δ·ͰࠞͥΔɻόχϥΤοηϯεΛՃ͑Δɻશͯͷॲཧʹॱ൪͕͋Γ·͕͢ɺͦΕͧΕಠཱ͍ͯ͠·͢ɻ10
όλʔHΛࠞͥΔɻ࠭HΛՃ͑Δɻ;ΜΘΓ͢Δ·ͰࠞͥΔɻόχϥΤοηϯεΛՃ͑Δɻ༹͖ཛΛՃ͑Δɻ ॲཧΛՃ11
όλʔHΛࠞͥΔɻ࠭HΛՃ͑Δɻ;ΜΘΓ͢Δ·ͰࠞͥΔɻόχϥΤοηϯεΛՃ͑Δɻ༹͖ཛΛՃ͑Δɻ ॲཧΛՃΞΫγϣϯϑοΫ12
όλʔHΛࠞͥΔɻ࠭HΛՃ͑Δɻ;ΜΘΓ͢Δ·ͰࠞͥΔɻόχϥΤοηϯεΛՃ͑Δɻ༹͖ཛΛՃ͑Δɻ Ͳ͜ʹՃ͔ͨ͠ʁ13
όλʔHΛࠞͥΔɻ࠭HΛՃ͑Δɻ;ΜΘΓ͢Δ·ͰࠞͥΔɻόχϥΤοηϯεΛՃ͑Δɻ༹͖ཛΛՃ͑Δɻʮ;ΜΘΓ͢Δ·Ͱࠞͥͨޙʯ14
ΞΫγϣϯϑοΫΛॻ͍ͯΈͨfunction ༹͖ཛΛՃ͑Δ() {}add_action(';ΜΘΓ͢Δ·Ͱࠞͥͨޙ', '༹͖ཛΛՃ͑Δ');15
ΞΫγϣϯϑοΫΛॻ͍ͯΈͨfunction ༹͖ཛΛՃ͑Δ() {}add_action(';ΜΘΓ͢Δ·Ͱࠞͥͨޙ', '༹͖ཛΛՃ͑Δ');ॲཧΛՃ͢ΔॴΛࢦఆͯ͠ʜ16
ΞΫγϣϯϑοΫΛॻ͍ͯΈͨfunction ༹͖ཛΛՃ͑Δ() {}add_action(';ΜΘΓ͢Δ·Ͱࠞͥͨޙ', '༹͖ཛΛՃ͑Δ');࣮ߦ͢ΔॲཧΛ໊ؔͰࢦఆ17
ΞΫγϣϯϑοΫΛॻ͍ͯΈͨfunction ༹͖ཛΛՃ͑Δ() {}add_action(';ΜΘΓ͢Δ·Ͱࠞͥͨޙ', '༹͖ཛΛՃ͑Δ');ϑοΫʹՃ͑ΔॲཧؔʢGVODUJPOʣͰॻ͖·͢18
ͳͥ͜ΜͳΊΜͲ͍͘͜͞ͱΛ͢Δͷ͔ʁ19
ϨγϐιʔείʔυΞοϓσʔτ͞ΕΔɻॻ͖͑ͯ͠·͏ͱ͋ͱͰͲ͜Λฤू͔ͨ͠Θ͔Βͳ͘ͳΔɻ20
ΧελϚΠζϑοΫͰߦ͏ͷ͕ݪଇɻςϯϓϨʔτʹॻ͍ͯ͠·͏ͱɺςʔϚΛม͑ͨ࣌ʹॲཧ͕ফ͑ͯ͠·͏ɻ8FC੍࡞ऀ͠͠αΠτͷςʔϚมΘΒͳ͍ͷͩͱࢥ͏͕ɺҰԠಛघͳྫͰຊདྷϢʔβʔ͕ม͑Δͷ21
όλʔHΛࠞͥΔɻ࠭HΛՃ͑Δɻ;ΜΘΓ͢Δ·ͰࠞͥΔɻόχϥΤοηϯεΛՃ͑Δɻ22
όλʔHΛࠞͥΔɻ࠭HΛՃ͑Δɻ;ΜΘΓ͢Δ·ͰࠞͥΔɻόχϥΤοηϯεΛՃ͑ΔɻϨγϐͷதʹෳͷॲཧʹڞ௨ͨ͠ಈ࡞͕͋Γ·͢ɻ23
όλʔHΛΑࠞͥ͘Δɻ࠭HΛՃ͑Δɻ;ΜΘΓ͢Δ·ͰΑࠞͥ͘ΔɻόχϥΤοηϯεΛՃ͑ΔɻʮࠞͥΔʯΛʮΑࠞͥ͘ΔʯʹϑΟϧλʔΛ͔͚ͨ24
όλʔHΛΑࠞͥ͘Δɻ࠭HΛՃ͑Δɻ;ΜΘΓ͢Δ·ͰΑࠞͥ͘ΔɻόχϥΤοηϯεΛՃ͑ΔɻʮࠞͥΔʯΛʮΑࠞͥ͘ΔʯʹϑΟϧλʔΛ͔͚ͨϑΟϧλʔϑοΫ25
ϑΟϧλʔϑοΫΛॻ͍ͯΈͨfunction ࠞͥΔʹΑ͘Λ͢($text) {return ‘Α͘’ . $text;}add_filter('ࠞͥΔ', 'ࠞͥΔʹΑ͘Λ͢');26
όλʔHΛΑࠞͥ͘Δɻ;ΜΘΓ͢Δ·ͰΑࠞͥ͘ΔɻόχϥΤοηϯεΛՃ͑Δɻʮ࠭HΛՃ͑ΔʯΛॲཧ͠ͳ͍27
όλʔHΛΑࠞͥ͘Δɻ;ΜΘΓ͢Δ·ͰΑࠞͥ͘ΔɻόχϥΤοηϯεΛՃ͑Δɻʮ࠭HΛՃ͑ΔʯΛॲཧ͠ͳ͍͜ΕϑΟϧλʔϑοΫ28
ϑΟϧλʔϑοΫΛॻ͍ͯΈͨfunction Ί͓ͯ͘() {return false;}add_filter('࠭ΛՃ͑Δ͔Ͳ͏͔', 'Ί͓ͯ͘');29
ΞΫγϣϯϑοΫͷ͓͞Β͍function ༹͖ཛΛՃ͑Δ() {}add_action(';ΜΘΓ͢Δ·Ͱࠞͥͨޙ', '༹͖ཛΛՃ͑Δ');͋͘·ͰॲཧͷՃɻ30
ϑΟϧλʔϑοΫͷ͓͞Β͍function ࠞͥΔʹΑ͘Λ͢($text) {return ‘Α͘’ . $text;}add_filter('ࠞͥΔ', 'ࠞͥΔʹΑ͘Λ͢');͋͘·Ͱطଘͷॲཧͷมߋɻ31
ΞΫγϣϯϑοΫجຊతʹطଘͷॲཧͷมߋͰ͖ͳ͍ɻϑΟϧλʔϑοΫجຊతʹॲཧࣗମΛՃ͢Δ͜ͱͰ͖ͳ͍ɻ32
ͨͩ͠ɺྫ֎ʜάϩʔόϧมΛ͑ΞΫγϣϯϑΟϧλʔͰطଘͷॲཧͷ݁ՌΛมߋͨ͠ΓϑΟϧλʔ͢Δ͜ͱ͕Ͱ͖ΔɻάϩʔόϧมςʔϚϓϥάΠϯΛ·͍ͨͰ8PSE1SFTTͷॲཧதͰڞ௨Ͱ༻Ͱ͖ΔมQPTU [email protected] [email protected]ͳͲҰԠɺมΛͯ͠ϑΟϧλʔͷΑ͏ʹ͑ͯ͠·͏ʜʢ͍͜͠ʣ33
಄ͷίʔυΛ͏͍ͪͲݟͯΈ·͠ΐ͏function new_excerpt_more($more) {return '';}add_filter('excerpt_more','new_excerpt_more');34
಄ͷίʔυΛ͏͍ͪͲݟͯΈ·͠ΐ͏function new_excerpt_more($more) {return '';}add_filter('excerpt_more','new_excerpt_more');ϑΟϧλʔϑοΫͷొ35
಄ͷίʔυΛ͏͍ͪͲݟͯΈ·͠ΐ͏function new_excerpt_more($more) {return '';}add_filter('excerpt_more','new_excerpt_more');ϑΟϧλʔΛ࣮ߦ͢Δ໊ؔ36
಄ͷίʔυΛ͏͍ͪͲݟͯΈ·͠ΐ͏function new_excerpt_more($more) {return '';}add_filter('excerpt_more','new_excerpt_more');ϑΟϧλʔΛ࣮ߦ͢Δؔ37
಄ͷίʔυΛ͏͍ͪͲݟͯΈ·͠ΐ͏function new_excerpt_more($more) {return '';}add_filter('excerpt_more','new_excerpt_more');ԿΒ͔ͷΛड͚औͬͯʜ38
಄ͷίʔυΛ͏͍ͪͲݟͯΈ·͠ΐ͏function new_excerpt_more($more) {return '';}add_filter('excerpt_more','new_excerpt_more');ۭͷจࣈྻΛฦ͍ͯ͠Δ39
಄ͷίʔυΛ͏͍ͪͲݟͯΈ·͠ΐ͏function new_excerpt_more($more) {return '';}add_filter('excerpt_more','new_excerpt_more');͜ͷNPSFԿʹΘΕͯΔͷʜ40
ιʔεΛಡΉ͔͠ͳ͍ʂ41
಄ͷίʔυΛ͏͍ͪͲݟͯΈ·͠ΐ͏function new_excerpt_more($more) {return '';}add_filter('excerpt_more','new_excerpt_more');ϑοΫΛొ͢Δॲཧ໊42
಄ͷίʔυΛ͏͍ͪͲݟͯΈ·͠ΐ͏function new_excerpt_more($more) {return '';}add_filter('excerpt_more','new_excerpt_more');[email protected] [email protected]Ͱ8PSE1SFTTͷιʔείʔυΛݕࡧʂ43
8PSE1SFTTίΞϑΝΠϧͷ֘ͷίʔυfunction wp_trim_excerpt($text = '') {$raw_excerpt = $text;if ( '' == $text ) {$text = get_the_content('');$text = strip_shortcodes( $text );$text = apply_filters('the_content', $text);$text = str_replace(']]>', ']]>', $text);$excerpt_length = apply_filters('excerpt_length', 55);$excerpt_more = apply_filters('excerpt_more', ' ' .'[...]');$text = wp_trim_words( $text, $excerpt_length,$excerpt_more );}return apply_filters('wp_trim_excerpt', $text, $raw_excerpt);}wp-includes/formatting.phpʢൈਮʣ44
8PSE1SFTTίΞϑΝΠϧͷ֘ͷίʔυfunction wp_trim_excerpt($text = '') {$raw_excerpt = $text;if ( '' == $text ) {$text = get_the_content('');$text = strip_shortcodes( $text );$text = apply_filters('the_content', $text);$text = str_replace(']]>', ']]>', $text);$excerpt_length = apply_filters('excerpt_length', 55);$excerpt_more = apply_filters('excerpt_more', ' ' .'[...]');$text = wp_trim_words( $text, $excerpt_length,$excerpt_more );}return apply_filters('wp_trim_excerpt', $text, $raw_excerpt);}[email protected] ϑΟϧλʔΛ͔͚Δwp-includes/formatting.phpʢൈਮʣ45
8PSE1SFTTίΞϑΝΠϧͷ֘ͷίʔυfunction wp_trim_excerpt($text = '') {$raw_excerpt = $text;if ( '' == $text ) {$text = get_the_content('');$text = strip_shortcodes( $text );$text = apply_filters('the_content', $text);$text = str_replace(']]>', ']]>', $text);$excerpt_length = apply_filters('excerpt_length', 55);$excerpt_more = apply_filters('excerpt_more', ' ' .'[...]');$text = wp_trim_words( $text, $excerpt_length,$excerpt_more );}return apply_filters('wp_trim_excerpt', $text, $raw_excerpt);}ઌ΄ͲͷNPSFͷத͕໌ɻ֯εϖʔε>ͩͬͨɻwp-includes/formatting.phpʢൈਮʣ46
಄ͷίʔυʹ͖ͬͯ·ͨ͠function new_excerpt_more($more) {return '';}add_filter('excerpt_more','new_excerpt_more');ͭ·Γ͜ͷNPSFbbb>`ͱ͍͏จࣈྻͰͨ͠47
಄ͷίʔυʹ͖ͬͯ·ͨ͠function new_excerpt_more($more) {return '';}add_filter('excerpt_more','new_excerpt_more');ϑΟϧλʔϑοΫΛۭͬͯͷจࣈྻΛฦ͢͜ͱͰʜ48
8PSE1SFTTίΞϑΝΠϧͷ֘ͷίʔυfunction wp_trim_excerpt($text = '') {$raw_excerpt = $text;if ( '' == $text ) {$text = get_the_content('');$text = strip_shortcodes( $text );$text = apply_filters('the_content', $text);$text = str_replace(']]>', ']]>', $text);$excerpt_length = apply_filters('excerpt_length', 55);$excerpt_more = apply_filters('excerpt_more', ' ' .'[...]');$text = wp_trim_words( $text, $excerpt_length,$excerpt_more );}return apply_filters('wp_trim_excerpt', $text, $raw_excerpt);}ίΞϑΝΠϧதͷ[email protected]ʹೖ͞ΕΔ͕มΘΔwp-includes/formatting.phpʢൈਮʣ49
ʜʜ͍͖ͯͯΔ͔ʔͬʂʁ50
Ͱ͞Βʹ࣮ફฤɻ51
8PSE1SFTTͷΧςΰϦʔΟδΣοτฒͼॱΛม͍͑ͨͳ͊ʜ52
ฒͼॱͷઃఆ͕ͳ͍ʜ53
ͯ͜͜͞Ͱ࣭ɻΧςΰϦʔΟδΣοτ͕දࣔ͢ΔΧςΰϦʔͷฒͼॱΛม͍͑ͨɻ͜ΕΞΫγϣϯϑοΫʁϑΟϧλʔϑοΫʁ54
֘෦ͷίʔυ/*** Categories widget class** @since 2.8.0*/class WP_Widget_Categories extends WP_Widget {...! ! $cat_args = array('orderby' => 'name', 'show_count' => $c,'hierarchical' => $h);...! ! ! ! $cat_args['title_li'] = '';! ! wp_list_categories(apply_filters('widget_categories_args',$cat_args));?>! ! ...wp-includes/default-widget.phpʢൈਮʣ55
֘෦ͷίʔυ/*** Categories widget class** @since 2.8.0*/class WP_Widget_Categories extends WP_Widget {...! ! $cat_args = array('orderby' => 'name', 'show_count' => $c,'hierarchical' => $h);...! ! ! ! $cat_args['title_li'] = '';! ! wp_list_categories(apply_filters('widget_categories_args',$cat_args));?>! ! ...[email protected]@DBUFHPSJFT ؔͰΧςΰϦʔͷҰཡΛग़ྗͯ͠ΔΑ͏ͩɻwp-includes/default-widget.phpʢൈਮʣ56
֘෦ͷίʔυ/*** Categories widget class** @since 2.8.0*/class WP_Widget_Categories extends WP_Widget {...! ! $cat_args = array('orderby' => 'name', 'show_count' => $c,'hierarchical' => $h);...! ! ! ! $cat_args['title_li'] = '';! ! wp_list_categories(apply_filters('widget_categories_args',$cat_args));?>! ! ...Φϓγϣϯ[email protected]ʹϑΟϧλʔΛ௨ͯ͋͠Δʂ͜ΕͰฒͼॱมߋͰ͖ͦ͏ɻwp-includes/default-widget.phpʢൈਮʣ57
֘෦ͷίʔυ/*** Categories widget class** @since 2.8.0*/class WP_Widget_Categories extends WP_Widget {...! ! $cat_args = array('orderby' => 'name', 'show_count' => $c,'hierarchical' => $h);...! ! ! ! $cat_args['title_li'] = '';! ! wp_list_categories(apply_filters('widget_categories_args',$cat_args));?>! ! ...Φϓγϣϯ[email protected]ྻͳΜͩͳɻฒͼॱ໊લॱʹͳ͍ͬͯΔͳɻwp-includes/default-widget.phpʢൈਮʣ58
֘෦ͷίʔυ/*** Categories widget class** @since 2.8.0*/class WP_Widget_Categories extends WP_Widget {...! ! $cat_args = array('orderby' => 'name', 'show_count' => $c,'hierarchical' => $h);...! ! ! ! $cat_args['title_li'] = '';! ! wp_list_categories(apply_filters('widget_categories_args',$cat_args));?>! ! ...ϑΟϧλʔ໊ʮ[email protected]@BSHTʯ͔ɻwp-includes/default-widget.phpʢൈਮʣ59
GVODUJPOTQIQʹهࡌ͢Δίʔυfunction change_widget_category_orderby( $cat_args ){$cat_args['orderby'] = 'count';$cat_args['order'] = 'DESC';return $cat_args;}add_filter( 'widget_categories_args','change_widget_category_orderby' );60
GVODUJPOTQIQʹهࡌ͢Δίʔυfunction change_widget_category_orderby( $cat_args ){$cat_args['orderby'] = 'count';$cat_args['order'] = 'DESC';return $cat_args;}add_filter( 'widget_categories_args','change_widget_category_orderby' );[email protected]@DBUFHPSJFT ͷΦϓγϣϯΛྻͰड͚औͬͯʜˢ͜Ε͕ιʔεΛಡ·ͳ͍ͱ͔Βͳ͍61
GVODUJPOTQIQʹهࡌ͢Δίʔυfunction change_widget_category_orderby( $cat_args ){$cat_args['orderby'] = 'count';$cat_args['order'] = 'DESC';return $cat_args;}add_filter( 'widget_categories_args','change_widget_category_orderby' );มߋ͍ͨ͠ΦϓγϣϯΛઃఆͯ͠ʜˢͬͪ͜$PEFYͷ[email protected]@DBUFHPSJFTͷϖʔδΛݟͳ͍ͱ͔Βͳ͍62
GVODUJPOTQIQʹهࡌ͢Δίʔυfunction change_widget_category_orderby( $cat_args ){$cat_args['orderby'] = 'count';$cat_args['order'] = 'DESC';return $cat_args;}add_filter( 'widget_categories_args','change_widget_category_orderby' );ฦ͢63
Ͱ͖ͨʂΧςΰϦʔͷߘॱ߱ॱ64
͜ͷΑ͏ʹɺϑΟϧλʔϑοΫϑΟϧλʔ͞ΕΔ͕ͲΜͳͰϑΟϧλʔϑοΫͰฦ͕ͨͦ͠ͷޙͲͷΑ͏ʹΘΕΔͷ͔ɺϑοΫʹΑͬͯҟͳΔ͠ɺιʔεΛݟͳ͍ͱ͔Βͳ͍ɻ65
͞ΒʹɺΞΫγϣϯϑοΫ8PSE1SFTT͕ͲΜͳॱ൪ͰԿΛॲཧ͍ͯ͠Δͷ͔ɺ͋ΔఔΘ͔ͬͯͳ͍ͱͲ͜ʹϑοΫ͍͍ͯ͠ͷ͔͔Βͳ͍ɻ66
͑ʁ݁ہ͍͠͡Όͳ͍͔ͬͯʜʁ?67
ԶͷϑοΫ͕ͦΜͳʹ؆୯ͳΘ͚͕ͳ͍ʂԶͷϑοΫ͕ͦΜͳʹ؆୯ͳΘ͚͕ͳ͍ʂ68
ϑΟϧλʔϑοΫͷσόοάʹ%FCVH#BS&YUFOEFSϓϥάΠϯͷ7BSJBCMF-PPLVQػೳ͕ศརIUUQXPSEQSFTTPSHFYUFOEQMVHJOTEFCVHCBSFYUFOEFSͰΞΫγϣϯϑοΫͱϑΟϧλʔϑοΫͷҧ͍ɺجຊతͳߟ͑ํΛ͓͚ͬͯͦΜͳʹා͘ͳ͍Αʂ69
Ͱ࠷ޙʹ࿅शɻ70
XQMPHJOQIQΛΧελϚΠζͯ͠ΈΑ͏XQMPHJOQIQϩάΠϯը໘ݟͨΛΧελϚΠζͰ͖Δ֤छͷΞΫγϣϯˍϑΟϧλʔϑοΫ͕͋Δ͙͢ʹ֬ೝͰ͖Δ͠Өڹൣғগͳ͍ͷͰ࿅श͖71
XQMPHJOQIQͷϑΟϧλʔϑοΫ$login_header_url = __( 'http://wordpress.org/' );...$login_header_url =apply_filters( 'login_headerurl',$login_header_url );...bloginfo( 'name' ); ?>wp-login.phpʢൈਮʣ72
XQMPHJOQIQͷϑΟϧλʔϑοΫ$login_header_url = __( 'http://wordpress.org/' );...$login_header_url =apply_filters( 'login_headerurl',$login_header_url );...bloginfo( 'name' ); ?>wp-login.phpʢൈਮʣม[email protected]@VSMʹ8PSE1SFTTެࣜαΠτͷ63-͕֨ೲ͞Ε͍ͯΔʢ༁ϑΝΠϧʹΑ࣮ͬͯࡍʹKBXPSEQSFTTPSHʹͳΔʣ73
XQMPHJOQIQͷϑΟϧλʔϑοΫ$login_header_url = __( 'http://wordpress.org/' );...$login_header_url =apply_filters( 'login_headerurl',$login_header_url );...bloginfo( 'name' ); ?>wp-login.phpʢൈਮʣม[email protected]@VSMʹϑΟϧλʔ͕ద༻͞Ε͍ͯΔ74
XQMPHJOQIQͷϑΟϧλʔϑοΫ$login_header_url = __( 'http://wordpress.org/' );...$login_header_url =apply_filters( 'login_headerurl',$login_header_url );...bloginfo( 'name' ); ?>wp-login.phpʢൈਮʣม[email protected]@VSM͕ΘΕ͍ͯΔͷϩάΠϯϑΥʔϜͷϩΰͷϦϯΫઌ75
GVODUJPOTQIQ͔ΒϦϯΫઌΛม͑ͯΈΑ͏function change_login_headerurl( $login_headerurl ){! return 'http://2013.wordfes.org/';}add_filter( 'login_headerurl','change_login_headerurl' );76
XQMPHJOQIQͷΞΫγϣϯϑοΫwp-login.phpʢൈਮʣΞΫγϣϯϑοΫ͕࣮ߦ͞ΕΔͷ[email protected]ؔॲཧͷʮՃʯͳͷͰɺطଘͷΛ͏͜ͱͳ͘γϯϓϧͰ͢Ͷɻ77
XQMPHJOQIQͷΞΫγϣϯϑοΫfunction login_footer_message() {! echo 'ͭͳ͕Ζ·͍ʂ';}add_action( 'login_footer','login_footer_message' );ϝοηʔδΛՃͯ͠Έͨ78
࿅शɿϩάΠϯΤϥʔϝοηʔδecho '' .apply_filters('login_errors', $errors) . "\n";wp-login.phpʢൈਮʣΤϥʔϝοηʔδͷʮɻʯΛʮὑʯʹม͑ͯΈ·͠ΐ͏ʂղͪ͜ΒIUUQTHJTUHJUIVCDPNIJTTZDGCB79
ϑοΫ͕ා͘ͳ͘ͳ͔ͬͨͳʁʁ80
ϑοΫʹؔ͢ΔϒϩάΛ৭ʑΞοϓͯ͠·͢ɻϑΟϧλʔϑοΫɿΧελϜϝχϡʔͷ߲ʹ༩͞ΕΔΫϥεΛΧελϚΠζ͢ΔIUUQOPUOJMDSFBUJWFDPNCMPHBSDIJWFTϑΟϧλʔϑοΫɿݕࡧ݁ՌͰߘλΠϓ͝ͱʹҧ͏ςϯϓϨʔτϑΝΠϧΛ͏IUUQOPUOJMDSFBUJWFDPNCMPHBSDIJWFTΞΫγϣϯϑοΫɿςʔϚ͔Β+BWBTDSJQU$44ΛಡΈࠐΉॻ͖ํ·ͱΊIUUQOPUOJMDSFBUJWFDPNCMPHBSDIJWFTΞΫγϣϯϑοΫɿπʔϧόʔΛΧελϚΠζ͢ΔIUUQOPUOJMDSFBUJWFDPNCMPHBSDIJWFTΞΫγϣϯϑοΫɿύϯͣ͘φϏήʔγϣϯʢ#SFBEDSVNC/BW95ʣΛΧελϚΠζ͢ΔIUUQOPUOJMDSFBUJWFDPNCMPHBSDIJWFTϑΟϧλʔϑοΫɿΪϟϥϦʔΛΧελϚΠζ͖ͯ͠ͳK2VFSZϓϥάΠϯΛ͏IUUQOPUOJMDSFBUJWFDPNCMPHBSDIJWFT81
5IBOLT82