無料版OnePress Image Elevatorのプレミアム通知を無効化する
OnePress Image Elevator
皆さんこんにちは、今回は無料のwordpressプラグイン「OnePress Image Elevator」の記事です。
OnePress Image Elevatorは本来wordpressではできないクリップボード内の画像を簡単に貼り付けられるようにするプラグインです。
なおこのプラグインは無料版有料版があり、無料版は機能が限定されていて有料版への通知も1週間おきに表示されます。
ですが無料版で満足している場合は通知が邪魔なので今回はそれを無効化する方法を紹介
なお全て自己責任でお願いします、間違えなければ問題なくできます。
プラグインエディター
プラグイン内の通知をする機能を無効化します。
まずはwordpressに実装されているプラグインエディターを起動します。
プラグインエディターを開いたらプラグイン一覧からOnePress Image Elevatorを選択します。
次にこのようにタブ(フォルダ)を開きます。
この中で編集するフォルダ「notices.php」「wp-editor.php」を編集します。
noticesはダッシュボードでの通知、editorは編集画面内のget premiumのボタンが表示されます。
notices.php
notices.phpを開き、以下の行をコメントアウトします。
if ( ( time() - $lastCloase > 60*60*7 ) || $forceToShowNotices ) { $notices[] = array( 'id' => 'imgevr-offer-to-purchase', 'class' => 'call-to-action ', 'icon' => 'fa fa-arrow-circle-o-up', 'header' => '<span class="onp-hightlight">' . __('Explode your productivity with Image Elevator!', 'sociallocker') . '</span>', 'message' => __('Rename images in the editor by a single click and compress large images on the fly! Upgrade your copy of the Image Elevator to get these features.', 'sociallocker'), 'plugin' => $clipImages->pluginName, 'where' => array('plugins','dashboard', 'edit'), // buttons and links 'buttons' => array( array( 'title' => '<i class="fa fa-arrow-circle-o-up"></i> Learn More & Upgrade', 'class' => 'button button-primary', 'action' => admin_url('admin.php') . '?page=how-to-use-clipboard-images&onp_sl_page=premium' ), array( 'title' => __('No, thanks', 'onepress-ru'), 'class' => 'button', 'action' => 'x' ) ) ); }
なおコメントアウトしたい行を選択して、「ctrl+/」を同時押しすることで一括コメントアウトできます。
このようになれば大丈夫です。
wp-editor.php
wp-editorもさっき同様コメントアウトします。
<a class='button imgevr-get-premium' href='<?php echo admin_url('admin.php') . '?page=how-to-use-clipboard-images&onp_sl_page=premium' ?>'><span>Get Premium</span></a>
上記の行をさきほど同様、ctrl+/でコメントアウトします。
いい忘れていましたが行を検索する際はctrl+Fキーで文字を検索できます。
このようになれば大丈夫です。
感想
以上で通知や勧誘の設定を無効化しました、ですが有料版も十分便利な機能があります。
画像の名前変更(SEO対策)や画像のリサイズ(表示速度への対策)等の機能があります。
SEOに手を抜かないのであれば有料版も検討するのもいいかもしれませんね。
ディスカッション
コメント一覧
まだ、コメントがありません