ページの作成

ページの作成

親となるページを選択してください。

ページは必ず何かしらの親ページに紐づきます。
親ページに紐づくページを子ページといいます。
例: 親=スポーツ, 子1=サッカー, 子2=野球

子ページを親ページとして更に子ページを作成することも可能です。
例: 親=サッカー, 子=サッカーのルール

親ページはいつでも変更することが可能なのでとりあえず作ってみましょう!
テンプレートを更新

1. Wordpressのdo_actionの使い方

本稿ではWordpressのdo_action関数について説明します。

 

説明

do_action関数を使用することで、Wordpressの既存の関数もしくは自分で定義した関数を呼び出すことができます。

一つの関数を呼び出すのではなく、関数に付与したタグを指定することでタグのついた関数を一度に呼び出すことができます。

 

構文

$tagに呼び出したいタグを、$argに指定した関数に与える引数を指定します。

<?php do_action( $tag, $arg ); ?>

複数の引数を与える場合は以下のようにします。

<?php do_action( $tag, $arg_a, $arg_b, $etc ); ?>

 

関数の登録とタグの付与

関数の登録の仕方とタグの付与方法を説明します。

以下、function.phpに関数を定義します。

//関数の定義 中身はなんでもいい

function test_func( $a, $b )
{
    echo $a .  " and " . $b;
}

 

//関数を登録する

// add_action( $tag, $function_to_add, $priority, $accepted_args );

add_action( 'test_tag', 'test_func', 10, 2 );

 

//関数を呼び出す

do_action( 'test_tag', "A", "B" );

 

 

子ページ
子ページはありません
同階層のページ
  1. do_action
  2. get_header

最近の質問

コメント一覧

    No.11 | guest | 2020-01-14 04:00:41

    This change of heart was hard acknowledge. Changes that happened without you notices and are not needed should bbe gotten gone.For most of us, irritattion usually involves people. http://bre.ak.D.o.wnkq.Pz@www.jeffheotzler.com/Guestbook/admin/panel_info.php?a%5B%5D=%3Ca+href%3Dhttps%3A%2F%2F918kiss.poker%2Fdownloads%3Esky777+download%3C%2Fa%3E

    No.10 | guest | 2020-01-05 23:57:36

    Would Pete Carroll benefit from tsking an NFL assignment? Financially the package would be exceptional. The NFL grass isn't always as green in relation to winning and relinquishing. Just aask Nick Saban who attempted such a for you to the Miami Dolphins with little achievements. Saban returned to Alabama where he just recently clzimed a National Championship an issue Crimson Tide. Rick Pitino tried the move in basketball leaving the University of Kentucky to coach the Boston Boston celtics. He's noow back in the college game at the University of Louisville. 25. Sacramento Kings (20-52) Don't look now, but the Kings have won 4-of-5.When Tyreke Evans is healthy, tis team has the chance turn out to be pretty solid. They're better than a 20-livemobile 3win8. 13. Philadelphia 76ers (37-36) The Sixers missed a golden opportunity in an overtime loss to the Sacramento Kings, mainly because of the road on top. Wiith games ahead against the Bulls and Rockets, a four-game losing streak isn't unthinkable. Dallpas - Tony Romo finally ggot an arm off a monkey off his back as hhe won a playoff game last holiday season. Cann he lead Dallas all of the way? Dallas is always along with talent and, if they stay healthy which will be a concern with them, they'll liely will function as favorites the actuql NFC. Next up is Bogut at 04.34. Bogut has been plagued by back problems aall season long, yett was very productive back then hhe was on flooring. The lack of another solid post presence is an important reason the Bucks have underachieved regarding whho the winner. Sessions is a solid rebounding guard, giving him significantly more value. Any his ever-increasing scoring ability, his assists have decreased, and as being a result, his turnovers have decreased also. Still, Sessions can be a fantastic young player byy using a ton of upside. Washington - The addition of Shanjahan at coach and McNabb at quarterback will only help the offense, even though there are might be no a associated with options on that side of the ball. This team is middle with the pack is actually. http://Sm0912.com/home.php?mod=space&uid=345124&do=profile&from=space

    No.9 | guest | 2020-01-05 11:57:56

    The lovemaking which followed wuich was intense. Stuttering or increased ratee of speech ccan be possible. So, why not let your shirt do alll the talking a person? Take someone to you who could be trusted. http://netseoul.ne.kr/?a%5B%5D=%3Ca+href%3Dhttps%3A%2F%2F918kiss.poker%2Fcasino-games%2F69-rollex11%3Erollex11+login%3C%2Fa%3E

    No.8 | guest | 2019-10-15 10:15:15

    What you really want is a laptop or tablet computer. Well this dilemma can be avoided if getting . know ways to set a spending budget for your game. Some people aspire more than things he already has. http://Tilly.Linker@Eco.S.Y.St.E.Mkaes@Alina.hu/phpinfo.php?a%5B%5D=%3Ca+href%3Dhttps%3A%2F%2Fkslot.app%2Findex.php%2Fgames%2Frollex11%3Erollex+11%3C%2Fa%3E

    No.7 | guest | 2019-10-09 11:44:41

    I have to thank you for the efforts yoou hav put in writing this website. I'm hoping to see the same high-grade content from you in thee future as well. In fact, your creative writing abilities has inspirdd me to get my own, personal blog now ;) http://tvc.in/joker123tips140319

    No.6 | guest | 2019-10-04 04:56:10

    While they sang about "Detroit Rock City", KISS actually got its start in New York City. Once youu have these basics mastered, it is time to how to play bass guitar. Surely, hilarity and outrageousness would happen. http://www.wwwdr.Ess.Aleoklop.e@www.your-hoster.de/info.php?a%5B%5D=%3Ca+href%3Dhttp%3A%2F%2Face333.gdn%2Findex.php%2Fdownload%2F1-918kiss-scr888%3E918+kiss%3C%2Fa%3E

    No.5 | guest | 2019-10-02 13:26:55

    Winning or losing merely the other side of the coin. However, these bonuses come with wagering requirement. Some websites offer the gamers with 69 types three reel slot movie. http://elesipijygho.mihanblog.com/post/comment/new/108/fromtype/postone/fid/15261067265af68a66a4f4f/atrty/1526106726/avrvy/0/key/18fb89be28237f2bdf725d6f934868e2/

    No.4 | guest | 2019-09-28 13:59:19

    Methods what we do, feel and think today are going to do, feel, and think tomorrow. Here are points to allow you bring back the love. Which actions help effect the separation? https://w.anting.parentcrazyre.stfir.stdro@www.mondaymorninginspiration@fidelia.commons@Hu.Fen.Gk.Uang.Ni.U.B.I.Xn--.U.K.6.2@p.a.r.a.ju.mp.e.r.sj.a.s.s.en20.14@idiving.de/en/node/2796/track

    No.3 | guest | 2019-09-26 10:59:21

    They win the admiration, respect, and good opinion of others, at a fast rate. You don't need turn out to be wary of attending events where they could also be. Fortunately, you can always get your banners around the web. http://Tresa.Kaye@dhavi.blog.w.skve.org/php_test.php?a%5B%5D=%3Ca+href%3Dhttp%3A%2F%2F918.credit%2Fcasino-games%2Fjoker-123%3Ejoker123+casino%3C%2Fa%3E

    No.2 | guest | 2019-09-24 23:49:14

    Hello, i read your blog occasionaly and i own a similar one and i was just wondering iif you gget a loot of spam feedback? If so how do you protect against it, any plugin or anything you can advise? I get so much latesly it's dricing me crazy so any assisstance is very much appreciated. http://eaccelerateconsulting.com/__media__/js/netsoltrademark.php?d=918.network%2Fcasino-games%2F70-3win8

    No.1 | guest | 2019-09-23 05:28:59

    Peter Criss was "Catman"--needing tgose nine lives to distance himdelf from his rough childhood in Brooklyn. Canup got his begin in the industrdy back in 2001 being a ticket taker. Besides being innovators, KISS were also influencers. http://Tresa.Kaye@dhavi.blog.w.skve.org/php_test.php?a%5B%5D=%3Ca+href%3Dhttp%3A%2F%2Face333.gdn%2Findex.php%2Fother-games%2F918kiss%2F13-918kiss%3Escr888+download%3C%2Fa%3E