コンテンツへスキップ

WorkBreak memo

プログラムのメモとか日常のこととか

月: 2015年12月

投稿日: 2015年12月25日2015年12月25日

WordPressでRSS2を全文表示にする

add_filter('option_rss_use_excerpt',function($v){return false;});
add_filter('the_excerpt_rss',function($output){return get_the_content_feed('rss2');});
投稿日: 2015年12月10日2015年12月10日

wp_schedule_event に5分間隔のイベントを追加

add_filter('cron_schedules',function($schedules){
    $schedules['five_minutes'] = array(
            'interval'  => 300,
            'display'   => __('Every 5 Minutes')
    );
    return $schedules;
});
wp_schedule_event(time(), 'five_minutes', 'your_cron_function');

参照

投稿日: 2015年12月3日

WordPressでDBに書き込まずにURLを変更

define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');

最近の投稿

  • NginxでGETパラメーターを使ってbasic認証の条件分岐
  • WordPressの関連記事をカテゴリーとタグからプラグインなしで取得する(自作)
  • Google Apps Scriptでサーバを監視しメール通知
  • curlエラーのときだけメール送信する crontab用
  • Reno5Aの初期設定

最近のコメント

    アーカイブ

    • 2021年12月
    • 2021年11月
    • 2021年10月
    • 2021年8月
    • 2021年6月
    • 2021年1月
    • 2020年8月
    • 2020年6月
    • 2019年11月
    • 2019年6月
    • 2019年1月
    • 2018年11月
    • 2018年10月
    • 2018年9月
    • 2018年4月
    • 2016年11月
    • 2016年10月
    • 2016年9月
    • 2016年6月
    • 2015年12月
    • 2015年11月
    • 2015年7月
    • 2015年1月
    • 2014年12月
    • 2014年10月

    カテゴリー

    • Google Apps Script
    • jQuery
    • MySQL
    • PHP
    • Python
    • Ubuntu
    • Varnish
    • VIM
    • Windows
    • Wordpress
    • 未分類

    メタ情報

    • ログイン
    • 投稿フィード
    • コメントフィード
    • WordPress.org
    Proudly powered by WordPress