Warning: Undefined array key 2 in /home/xs390735/increment-log.com/public_html/wp-content/themes/increment-log/functions.php on line 349
Warning: Undefined array key 4 in /home/xs390735/increment-log.com/public_html/wp-content/themes/increment-log/functions.php on line 354
Warning: Undefined array key 6 in /home/xs390735/increment-log.com/public_html/wp-content/themes/increment-log/functions.php on line 359
WordPressを会員制サイトにするプラグイン「Simple Membership」。
このプラグインは有料会員の管理ができ、また有料会員用のPayPalと連係した決済ボタンを作成できます。
この決済ボタンのテキストを変更する方法が検索しても中々見つからず。
結局プラグインのプログラムコードを見て方法が分かったのでメモしておきます。
「Simple Membership」の決済ボタンのテキストを変更する方法
例えば定期購入決済ボタンを作成すると、以下のようなショートコードで決済ボタンが表示されます。
[swpm_payment_button id=1]しかし、このままではデフォルトの「購読する」というテキストになってしまいます。デフォルトのテキストから変更したい場合は、以下のように「button_text」パラメータを使用して文字を指定しましょう。
[swpm_payment_button id=1 button_text="有料会員登録"]これで任意の決済ボタンテキストに変更可能です。