Changeset 1746861
- Timestamp:
- 10/15/2017 04:17:46 PM (8 years ago)
- Location:
- wp-lead-plus-free-squeeze-pages-creator/trunk
- Files:
-
- 4 edited
-
inc/c37-page-manager.php (modified) (3 diffs)
-
inc/c37-popup-manager.php (modified) (1 diff)
-
inc/c37-widget-manager.php (modified) (1 diff)
-
index.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-lead-plus-free-squeeze-pages-creator/trunk/inc/c37-page-manager.php
r1716737 r1746861 26 26 'rewrite' => false, 27 27 'show_ui' => false, 28 'exclude_from_search' => true, 28 29 'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt' ) 29 30 ) … … 43 44 'public' => true, 44 45 'rewrite' => false, 46 'exclude_from_search' => true, 45 47 'show_ui' => false, 46 48 'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt' ) … … 62 64 'public' => true, 63 65 'rewrite' => false, 66 'exclude_from_search' => true, 64 67 'show_ui' => false, 65 68 'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt' ) -
wp-lead-plus-free-squeeze-pages-creator/trunk/inc/c37-popup-manager.php
r1739162 r1746861 24 24 'has_archive' => false, 25 25 'show_ui' => false, 26 26 'exclude_from_search' => true, 27 27 'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt' ) 28 28 ) -
wp-lead-plus-free-squeeze-pages-creator/trunk/inc/c37-widget-manager.php
r1739162 r1746861 24 24 'has_archive' => false, 25 25 'show_ui' => false, 26 26 'exclude_from_search' => true, 27 27 'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt' ) 28 28 ) -
wp-lead-plus-free-squeeze-pages-creator/trunk/index.php
r1746859 r1746861 5 5 Description: WordPress Landing pages builder, squeeze pages, lead generation pages, popup, widgets creator. Responsive pages that work perfectly on all devices. 6 6 Author: core37, codingpuss, landingpagebuilderwizard 7 Version: 1.10.5 67 Version: 1.10.57 8 8 Author URI: http://www.gatovago.com/ 9 9 Text Domain: wp-lead-plus-x … … 26 26 if (!defined('WPLX_VERSION_CODE_FREE')) 27 27 { 28 define('WPLX_VERSION_CODE_FREE', 5 6);28 define('WPLX_VERSION_CODE_FREE', 57); 29 29 } 30 30 … … 46 46 47 47 48 add_action( 'init', 'c37_remove_template_post_type', 99 ); 48 function c37_remove_template_post_type($query) { 49 49 50 function c37_remove_template_post_type() { 51 global $wp_post_types; 50 if ($query->is_search) { 52 51 53 if ( post_type_exists( 'core37_lp_template' ) ) {52 $query->set('post_type', 'post', 'page'); 54 53 55 // exclude from search results56 $wp_post_types['core37_lp_template']->exclude_from_search = true;57 54 } 55 return $query; 56 58 57 } 58 59 add_filter('pre_get_posts','c37_remove_template_post_type'); 60 61 //add_action( 'init', 'c37_remove_template_post_type', 99 ); 62 // 63 //function c37_remove_template_post_type() { 64 // global $wp_post_types; 65 // 66 // if ( post_type_exists( 'core37_lp_template' ) ) { 67 // 68 // // exclude from search results 69 // $wp_post_types['core37_lp_template']->exclude_from_search = true; 70 // $wp_post_types['core37_lp']->exclude_from_search = true; 71 // } 72 //}
Note: See TracChangeset
for help on using the changeset viewer.