This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Paka3UploadImg2 | |
Plugin URI: http://www.paka3.com/wpplugin | |
Description: 画像をアップロード時に、画像の処理をする | |
Author: Shoji ENDO | |
Version: 0.1 | |
Author URI:http://www.paka3.com/ | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: PakaUploadImg | |
Plugin URI: http://www.paka3.com/wpplugin | |
Description: 画像をアップロード時に、画像の処理をする | |
Author: Shoji ENDO | |
Version: 0.1 | |
Author URI:http://www.paka3.com/ | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Paka3_theme_switch { | |
private $name ; | |
function __construct($name = null) { | |
$this->name = $name; | |
add_filter("show_admin_bar", "__return_false"); | |
add_filter("stylesheet", array($this, "template")); | |
add_filter("template", array($this, "template")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Paka3_mobile_theme_admin{ | |
function __construct( ) { | |
add_action( 'admin_menu' , array($this , 'adminAddMenu' ) ); | |
} | |
//メニューの「paka3投稿」の設定(今回はサブメニュー) | |
function adminAddMenu ( ) { | |
add_submenu_page("themes.php", 'Paka3 Mobile Theme', 'Mobileテーマ', 'edit_themes', 'paka3_mobile_theme', array($this,'paka3_post_page')); | |
add_action( 'admin_notices', array( $this , 'start_text' )); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Paka3 mobile theme | |
Plugin URI: http://www.paka3.com/wpplugin | |
Description: スマホ・モバイル用にテーマを別設定するプラグイン。 | |
Author: Shoji ENDO | |
Version: 0.1 | |
Author URI:http://www.paka3.com/ | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Paka3_task_post_rss | |
Plugin URI: http://www.paka3.com/wpplugin | |
Description: ※定期的(1日おきに)に、RSSを取得し、新しい記事を自動で投稿する。 | |
Author: Shoji ENDO | |
Version: 0.1 | |
Author URI:http://www.paka3.com/ | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Paka3_task_post | |
Plugin URI: http://www.paka3.com/wpplugin | |
Description: 定期的(1日おきに)に、記事を自動で投稿する | |
Author: Shoji ENDO | |
Version: 0.1 | |
Author URI:http://www.paka3.com/ | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Paka3_task_post | |
Plugin URI: http://www.paka3.com/wpplugin | |
Description: 定期的(1日おきに)に、記事を自動で投稿する | |
Author: Shoji ENDO | |
Version: 0.1 | |
Author URI:http://www.paka3.com/ | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//functions.phpに書く場合等(プラグインディレクトリを指定しない方法) | |
add_action( 'wp', 'prefix_setup_schedule' ); | |
function prefix_setup_schedule(){ | |
if ( ! wp_next_scheduled( 'paka3_task_post_hook' ) ) { | |
//時差を求める | |
$p = ( current_time( 'timestamp' ) - time( ) ) / 3600; | |
//(今日から)毎日タスクを実行する時間を設定する |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Paka3FeedPost | |
Plugin URI: http://www.paka3.com/wpplugin | |
Description: フィードを新規で記事に追加する | |
Author: Shoji ENDO | |
Version: 0.1 | |
Author URI:http://www.paka3.com/ | |
*/ |