ログインをしてページを更新するだけでお金を稼ぐことが出来ます。
ページの作成

ページの作成

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

ページは必ず何かしらの親ページに紐づきます。
親ページに紐づくページを子ページといいます。
例: 親=スポーツ, 子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.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