Plugin Directory

Changeset 2777219


Ignore:
Timestamp:
08/29/2022 01:40:56 PM (4 years ago)
Author:
hellowoofy10
Message:

Adding 1.1.2 version of plugin

Location:
hellowoofy-com/trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • hellowoofy-com/trunk/admin/class-custom-post-template.php

    r2747043 r2777219  
    1919    public function __construct() {
    2020        add_filter( 'single_template', array( 'Custom_Post_Template', 'mws_single_story_template' ) );
     21
     22        add_filter( 'archive_template', array($this, 'get_custom_post_type_template') ) ;
    2123    }
    2224    /**
     
    3234        return $template;
    3335    }
     36
     37    public function get_custom_post_type_template( $archive_template ) {
     38        global $post;
     39        if (is_archive() && get_post_type($post) == 'webstories') {
     40            return plugin_dir_path( __FILE__ ) . 'class-custom-post-archieve.php';
     41        }
     42        return $archive_template;
     43    }
     44
    3445}
    3546new Custom_Post_Template();
  • hellowoofy-com/trunk/hellowoofy-com.php

    r2765844 r2777219  
    44 * Plugin URI: https://hellowoofy.com/hellowoofy-wordpress-plugin/
    55 * Description: Create marketing content automatically using data science.
    6  * Version: 1.1.1
     6 * Version: 1.1.2
    77 * Author: HelloWoofy.com
    88 * Author URI: https://hellowoofy.com
     
    3939}
    4040if ( ! defined( 'MWS_PLUGIN_VERSION' ) ) {
    41     define( 'MWS_PLUGIN_VERSION', '1.1.1' );
     41    define( 'MWS_PLUGIN_VERSION', '1.1.2' );
    4242}
    4343
  • hellowoofy-com/trunk/readme.txt

    r2765844 r2777219  
    55Requires at least: 3.5
    66Tested up to: 6.0
    7 Stable tag: 1.1.1
     7Stable tag: 1.1.2
    88Requires PHP: 5.6.20
    99License: GPLv2 or later
Note: See TracChangeset for help on using the changeset viewer.