First WordPress plugin

First read the wordpress plugin handbook
https://developer.wordpress.org/plugins/ , All development guides and specifications are here.

Use template creation tool: https://wppb.me/

This image has an empty alt attribute; its file name is image-50-1024x529.png

Need to fill in 6 items
plugin name: no need to explain
plugin slug: is the string following your WP URL, ,same as plugin name is ok
plugin URI: the location of the plugin
Author Name, Author Email, Author URI: Author information
Reference: https://developer.wordpress.org/plugins/plugin-basics/header-requirements/

[Build Plugin] Download the template and unzip it to see template structure of a plugin

This image has an empty alt attribute; its file name is image-53.png

Now copy (upload) the entire plugin directory to wordpress / wp-content / plugins

Now, go to your wordpress website, log in with admin, check Plugins, you will find that your plugin has appeared

Add action links to the plugin as shown below

To use add_filter plugin_action_links to add an action link, add the following code to plugin-name.php

add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), 'catp_plugin_settings_link' );
function catp_plugin_settings_link( $links )
{
    echo "<script> alert('123');</script>" ;
    $url = 'https://www.google.com';
 
    $_link = '<a href="'.$url.'" target="_blank">' . __( 'Setting', 'domain' ) . '</a>';
 
    $links[] = $_link;
 
    return $links;
}

Active your plugin will see an additional Setting action link(Appears only when the plugin is activated)

To add a new item to admin_bar:

add_action('admin_menu', 'catp_plugin_setup_menu');
 
function catp_plugin_setup_menu(){
        add_menu_page( 'Test Plugin Page', 'CATP', 'manage_options', 'test-plugin', 'test_init' );
}
function test_init(){
        echo "<h1>888</h1>";
}

To add content to the end of the post itself, use ‘the_content’

function to_footer($content) 
{

    return $content . 'I am in the footer';
}
if (is_admin()) {
  add_action('the_content', 'to_footer');
}

Note: if (is_admin ()) we only allow admin to take action ,So this content only appears when admin is logged in

Regarding actions, links, hooks, etc. developing WordPress plugins & themes, for those who are new to it, may really don’t know where to start. It takes time to get familiar with the usage of WordPress API. After some google and testing, I finally completed the first wordpress plugin:

clone-and-translate-post

At present, it is only possible to work, and the translation function is also possible after preliminary testing. There should be a little distance from reaching the product standard. If you are interested, you can participate together: https://github.com/jj449/clone-and-translate-post/

note:
Where does the menu appear?

  1. add_options_page
function myplugin_register_options_page() {
  add_options_page('catp options', 'catp options', 'manage_options', 'myplugin', 'myplugin_options_page');
}
add_action('admin_menu', 'myplugin_register_options_page');
This image has an empty alt attribute; its file name is image-69.png

2. add_menu_page

function catp_plugin_setup_menu(){
        add_menu_page( 'Test Plugin Page', 'CATP', 'manage_options', 'test-plugin', 'test_init' );
}
add_action('admin_menu', 'catp_plugin_setup_menu');
This image has an empty alt attribute; its file name is image-70.png

3. add_submenu_page

Online earning rookie experience 2019

There are many ways to make money online. For example, is the popular “Raising the Net Army” one of them? Haha, but because I’m too unsuitable to touch something of this level, it’s beyond the scope of discussion. The main discussion here is to put advertisements on your content (website / blog / app) to make money. The content is personal experience. Please feel free to criticize and correct any errors.

conclusion: Google Adsense is biggest one, and it is the first choice. It’s really more convenient, because it will put the advertisement automatically. Also sure to have money.

Other affiliate must try first carefully! Confirm that it really counts your performance? Confirm that you can really make money from?

Under some special considerations, you will look for other advertising networks to make money by advertising. For example: there may be a problem with the google account, the URL of the website you submitted has not been approved by google, you want to put more ads to make more money, or just experiment with the effects of other advertising sources, etc.

Tried three: Commission Junction (cj), FireADs, and iChannel from Taiwan.

Because I only used adsense before, I do n’t know about other advertisements. I ’m not an advertising expert, but I ’m a rookie, so please contact me to correct any misunderstandings or errors.

I tested it in Taiwan. After the advertisement was placed, I clicked on the mobile phone (different network) and filled in the information (email phone, etc.). The click history appeared, and the advertiser contacted me. Course), but it is not counted in the performance of the website! Performance is still sad.

This image has an empty alt attribute; its file name is image-27.png

But I remember that the type of this advertisement is CPL, that is, if visitors enter the advertisement link and fill in the information, the performance will be established? Ah why? So I went back and took a closer look

This image has an empty alt attribute; its file name is image-28.png

see?
  Clearly write 70 for CPL registered members? I signed up and received a call from the advertiser. Look for the advertiser information and find

Hey , not counted. It only counts if the sale is done successfully. It depends on CPS. It is based on sales . Give up and find a better one. . .

* Here we found that the type of advertisement and the choice of advertisers are so important! If you do n’t see it clearly, it ’s all waste time.

Comparing Google adsense, the most of revenue is from CPM thousand impressions, CPC per click. There is income from clicks and clicks, which is really more reasonable.

This image has an empty alt attribute; its file name is image-30.png

2. FireADs

Based on the previous experience, after joining the FireADs platform, immediately put an ad test first, click on the information will appear immediately, good!

pic

There is something special about this platform, post back

This image has an empty alt attribute; its file name is image-31.png

Post back is : When a visitor clicks or takes further action, it can post back to the URL you set. You can integrate with your own backend process or database. This action alone will increase your confidence and make it clear. the information is transparent

In addition, what is special is that he has a referral plan, that is, content publishers you pull in, and the revenue generated by them, FireADs will give you a certain% bonus. Is this attractive?

This image has an empty alt attribute; its file name is image-32.png

3. CJ , Commission Junction

This image has an empty alt attribute; its file name is image-33.png

There are so many advertisers in this old-fashioned advertising platform. At first, when you joined the advertisers, you dig! I ’m so glad that so many advertisers can choose. You will have a headache later, because you will find that it is completely manual. You have to find advertisers by yourself, apply one by one, after advertisers agree your apply, then you go to choose advertiser’s advertisement to display.

However, there are some advertisers with famous brands in list. This is good and feels more confident (?), Because a company with such a famous brand should not deceive us little publishers, right? Haha

This image has an empty alt attribute; its file name is image-34.png
This image has an empty alt attribute; its file name is image-35.png
This image has an empty alt attribute; its file name is image-36.png

At present, the click calculation is OK, and the actual results need to be observed again.

Well, in fact, there are so many affiliants in the advertising alliance, dazzling, but generally this is the mode of operation, that is, you participate, then find the advertiser, find the link for the advertisement, and then post the advertisement yourself. Spending a lot of time and is really not easy.

In particular, you have to figure out CPC, CPM, CPS, and other advertising models. Otherwise, if you make a mistake, you may waste time and waste your traffic, but you will not get a return.

CPM: CPM-Cost Per Mille, Mille means thousand in Latin, so it is the cost per 1,000 impressions (bonus)

CPC: Cost Per Click

CPS-Cost Per Sale (CPP-Cost Per Purchase) Every sale, like this, we have no way of knowing whether the last click will be consumed or not tracked. It seems that we can only look at the conscience of the advertiser?

Also pay attention to the following: CPA-Cost Per Action, CPL-Cost Per Lead, CPE-Cost Per Engagement. These kinds of model need to be clear about what the advertiser’s conditions are. What action counts? What lead counts? What Engagement counts? Do you trust this advertiser?

This image has an empty alt attribute; its file name is image-37.png
This image has an empty alt attribute; its file name is image-39.png

In addition, there is a headache, which is the country (region). Many advertisements are accompanied by advertisements or completed sales in specific country are considered effective. Especially for physical goods, most of them have national restrictions Yes, if your website / blog / app visitors may come from multiple countries, how should you deal with advertisement display? .

This image has an empty alt attribute; its file name is image-38.png

網賺菜鳥心得 2019

網賺很多種方式,例如最近很紅的 “養網軍” 算是其中一種嗎?哈哈, 不過因為自己太菜還沒資格碰這種等級的東西,不在探討的範圍.這裡探討的主要是在你的內容(網站/部落格/app )放上廣告來賺錢錢的部分,內容為個人心得,任何謬誤請不吝批評指正.

先說結論:Google Adsense 搞到最大真的是有他的理由,也是首選無誤.真的比較方便,因為他會自動幫你把廣告放好.也確定會有錢.

其他的一定要小心試試看!確認真的會算業績? 確定真的能賺到錢 ?

某些特殊考量下,你會再找其他廣告聯盟來放廣告賺錢.例如:可能google帳號有問題啦,你提交的網站 URL 一直不被google 核准啦,想放更多的廣告賺更多啊,或是純粹試驗一下其他廣告來源的效果等等.

這星期試了三家 : Comission Junction (cj) , FireADs , 跟一家台灣的 .

因為之前都只用 adsense , 其他的廣告不了解,我不是廣告專家是菜鳥,所以如果內容有誤解或是錯誤請跟我聯繫更正

  1. 台灣這家,我測試了,廣告放上後,另外用手機(不同網路)點擊並且有填了資料(email 電話等等) ,點擊紀錄是有出現,該廣告主有跟我聯繫(推銷英文課程的),但是在網站的業績裡面是不算的 !業績還是蛋蛋的哀愁,

可是我記得這個廣告的型態是 CPL 啊,就是訪客如果進入廣告連結並且填了資料,業績就成立了啊?啊怎麼這樣?所以我又回去看個仔細

看到沒?
明明寫CPL 註冊會員 70元 ? 我註冊了也收到廣告主來電,這樣還不算? 再找找廣告主資料,發現

白話文就是,產生名單還是不算數,要他推銷成功才算數,靠,那就是 CPS了啊 ,以銷售成功為計算基礎了,恩...放棄 再找個好一點的...

*在這裡我們發現,廣告的類型還有廣告商的挑選,為何如此重要了!沒看清楚的話,完全是做白工

比較一下 Google adsense ,收入大宗是 CPM 千次曝光, CPC 每次點擊 兩種. 都是有曝光有點擊就有收入,真的比較有保障

2. FireADs

基於上次的經驗,加入FireADs平台後,馬上先放個廣告測試,點擊資料會馬上出現,good !

pic

這個平台還有特別的地方,post back

post back 可以設定,當訪客點擊或是進一步的動作,他可以回傳到你設定的網址,你可以跟自己的後台或是資料庫做整合,光是這個動作就讓人信心大增,擺明一種開大門走大路,資料透明的意思

另外,特別之處還有他有 referral 計畫,也就是你可以有下線,你拉進來的人(內容出版者) 他們產生的收益,FireADs會另外給你一定 % 數的獎勵.這滿吸引人的吧? 只是要之後看到收入才能真的確認了,後續再報囉

3. CJ , Commission Junction

這個老牌的廣告平台,廣告商超多的,一開始加入進去,找廣告商的時候,挖!好高興啊,這麼多廣告商可以選啊,等一下你就頭痛了,因為你會發現它完全是手動的,要靠你自己找廣告商,一個一個申請,廣告商同意你了,你再一個一個抓廣告商的廣告來放.

不過,裡面不乏一些大廠牌的廣告主,這個是比較好的現象,感覺比較有保障(?) ,因為牌子這麼大的廠商應該不會欺騙我們小小出版主吧? 哈哈


目前觀察 點擊計算是OK的,實際成效還要再觀察.

好了,其實廣告聯盟 affiliant 真的好多喔,眼花撩亂,但是大致上都是這樣的運作模式,就是你參加了,然後自己找廣告商,自己找廣告連結,然後自己貼上廣告,真的要花很多時間精力,實在不太好搞.

尤其你還要搞清楚一堆 CPC, CPM , CPS啦之類的廣告模式,不然弄錯了很可能白花時間浪費了流量,卻得不到回報喔.

CPM : CPM – Cost Per Mille , Mille在拉丁文是千的意思,所以就是每 1千 的曝光的花費(獎金)

CPC : Cost Per Click  每次點擊 簡單明瞭

CPS – Cost Per Sale (CPP – Cost Per Purchase)每次銷售 ,像這種的 我們無從得知最後點擊是否會進行到消費,無從追蹤,似乎只能看廣告商的良心?

還有要注意以下幾種 :CPA – Cost Per Action , CPL – Cost Per Lead , CPE – Cost Per Engagement .這幾種都要看清楚廣告商的達成條件到底是什麼? 什麼Action才算? 什麼 Lead 才算?什麼 Engagement 才算? 你信任他嗎?

另外,還有很頭痛的,就是國家(地區) ,很多廣告都附帶 在哪一國家出現的廣告或是完成的銷售,才算有效,尤其實體商品這種的,大部分都會有國家地區的限制的,如果你的網站/blog/app 之訪問者可能來自多個國家,你該怎麼處理廣告的播放呢? .....這下你的頭大了沒?

好了,今天頭痛到這裡,下次繼續頭痛,哈哈哈哈

Car Title loan 什麼東東?

今天看到一個名詞 , title load 又名 car title loan. 誒?car =車子跟 loan=貸款 這個我們都知道啊,所以就是汽車貸款啊, 那這個 title 是什麼東西? title 不是文章的標題或是某人的職稱 嗎? 怎麼出現在這裡呢? 加了一個 title是什麼意思啊?

原來 原來這個 Title 指的是這個車子的文件,證明你擁有這輛汽車,還有什麼汽車保險那些必要文件的總稱.就是你拿你的title證明文件,就可以去抵押借錢,又有分車子要留下來當抵押品或是 車子你還能繼續開,這個就是我們常看到的 民間的汽車借款/ 免留車啦 ,學到了.原來Title還有這種意思跟用法.

wikipedia的解釋:https://en.wikipedia.org/wiki/Title_loan

裡面內容很詳細,還有這種貸款的利率,美國各州關於這種貸款的法律問題等等.

所以ㄋㄜ ,Title loan 就是我們一般說的抵押借款吧,什麼萬物皆可貸那種,這個我覺得我們發展得比美國還強啊,我們還有什麼機車借款 身分證借款 什麼東東都有 @@

另可參考:

https://www.thebalance.com/what-is-the-title-of-a-car-4049167

the IPV4 address numbers are dry – IPv4 位址 全部用完了!

RIPE NCC, the European Internet Registry, announced that it had allocated its last batch of previously unallocated IPV4 addresses to an ISP.

這表示IPv6時代正式來臨 .
一般使用者不需要擔心這個問題,網路還是會活得好好的.根據此報導,大部分的ISP 也可藉由交易IPv4 網路地址的方式,或獲取”二手”的IP address , 同時準備好 IPv6環境.IPv6 位址估計可以供人類使用數百年.

Take screenshot and edit it on MacOS

Many ways to take screenshot on MacOS , like :
1. command + shift + 3 : take entire screen and save it to your desktop
2. command + control + shift + 3 : take a screenshot of your entire screen, saved to your clipboard
3. command + shift + 4 :take a screenshot of part of your screen, saved to your desktop
4. command + control + shift + 4  :take a screenshot of part of your screen, saved to your clipboard
5. command + shift + 5 : Take a screenshot using Grab

You can try above methods to find the difference.

Example: command + shift + 5 : Take a screenshot using Grab and edit it in Apple preview

when you use command + shift +5 , an option bar will appear , you can choose what action you want to . Especially , you can choose where the screenshot to go . As we want to edit our screenshot , we assign [options] to [Apple preview]

then after taking screenshot, will open it in Apple preview directly. By default it’s read only , you can start to edit it by click the [A] symbol near top-right corner in Apple preview as picture show below.

Now we can do mark , add text and so on .

You can check out Apple’s official document here : https://support.apple.com/en-us/HT201361

WordPress:網頁不適合透過行動裝置瀏覽/Google search console/Mobile friendly

see that? in google mobile bot , the page displayed weired .

so , it’s obvious that plugin related : addToany .

so , I disable addtoany plugin


then go to google search console , try again .

Ding Don !! problem resolved ! F.Y.I.

another way I solve the problem : change addtoany share style to “float” .