Changeset 1477304
- Timestamp:
- 08/17/2016 08:49:35 PM (10 years ago)
- Location:
- wp-post-expires/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
wp-post-expires.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-post-expires/trunk/readme.txt
r1475897 r1477304 2 2 Contributors: X-NicON 3 3 Donate link: 4 Tags: expired post, posts expiring, expiration, expire 4 Tags: expired post, posts expiring, expiration, expire, wordpress post expiry 5 5 Requires at least: 3.0 6 Tested up to: 4. 5.37 Stable tag: 1.0 6 Tested up to: 4.6 7 Stable tag: 1.0.1 8 8 License: GPLv2 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 11 Plugin adds post expires time after which will be performed actions: add prefix , move to drafts or trash.11 Plugin adds post expires time after which will be performed actions: add prefix to title, move to drafts or trash. 12 12 13 13 == Description == 14 A simple plugin allow to set the posts, the timeafter which will be performed one of 3 actions: "Add prefix to title", "Move to drafts", "Move to trash".14 A simple plugin that allows to set the date for the posts, after which will be performed one of 3 actions: "Add prefix to title", "Move to drafts", "Move to trash". 15 15 16 16 = Features: = 17 * Set post expire sdate and time18 * Use forcustom post type (post and pages by default)17 * Set post expire date and time 18 * Support custom post type (post and pages by default) 19 19 * Action for expired posts: move to drafts, move to trash or add custom prefix for title 20 * Adds class "post-expired" for post expired on site andadmin interface (for custom styles in theme)20 * Adds class "post-expired" to post that expired on the site and in admin interface (for custom styles in theme) 21 21 22 22 = Use in theme: = … … 40 40 == Changelog == 41 41 42 = 1.0.1 = 43 fixed translation 44 42 45 = 1.0 = 43 46 -
wp-post-expires/trunk/wp-post-expires.php
r1475960 r1477304 33 33 34 34 public function __construct() { 35 load_plugin_textdomain('wp-post-expires', false, dirname(plugin_basename( __FILE__ ) ).'/languages'); 36 37 $this->settings = $this->load_settings(); 35 38 $this->url_assets = plugin_dir_url( __FILE__ ).'assets/'; 36 $this->settings = $this->load_settings();37 38 load_plugin_textdomain('wp-post-expires', false, dirname(plugin_basename( __FILE__ ) ).'/languages');39 39 40 40 add_action('the_post', array($this,'xn_wppe_expired_post')); … … 79 79 $dtplang = 'en'; 80 80 81 if($wplang == 'ru'){81 if($wplang[0] == 'ru'){ 82 82 $dtplang = false; 83 83 }elseif(in_array($wplang[0], $supported)){
Note: See TracChangeset
for help on using the changeset viewer.