Changeset 2610279
- Timestamp:
- 10/06/2021 12:19:08 PM (4 years ago)
- Location:
- platformly/trunk
- Files:
-
- 2 edited
-
platformly.php (modified) (4 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
platformly/trunk/platformly.php
r2585949 r2610279 4 4 Plugin Name: Platform.ly Official 5 5 Description: Platform.ly plugin is the easiest way to setup your optins and pages that your created with Platform.ly. After building your optin or page with our interactive WYSIWYG builders, you can set them up to show on your site with just a couple of clicks. 6 Version: 1.1 06 Version: 1.11 7 7 Author: Platform.ly 8 8 Author URI: https://www.platform.ly/ … … 16 16 define("PLATFORMLY_URL", "https://pageserver.platform.ly"); 17 17 18 define('PLATFORMLY_PLUGIN_VERSION', '1.1 0');18 define('PLATFORMLY_PLUGIN_VERSION', '1.11'); 19 19 20 20 include plugin_dir_path(__FILE__) . '/inc/ply.functions.php'; … … 35 35 'show_in_menu' => false, 36 36 'query_var' => false, 37 'rewrite' => array('slug'=>'/', 'with_front' => false),37 'rewrite' => true, 38 38 'capability_type' => 'page', 39 39 'has_archive' => false, … … 44 44 )); 45 45 } 46 47 /** 48 * Remove the slug from published post permalinks for our custom post types. 49 */ 50 add_filter('post_type_link', function($post_link, $post){ 51 $post_types = 'ply_page'; 52 if($post->post_type === $post_types && 'publish' === $post->post_status){ 53 if(strpos($post_link, '/archives/'.$post->post_type.'/')){ 54 $post_link = str_replace('/archives/'.$post->post_type.'/', '/', $post_link); 55 }else{ 56 $post_link = str_replace('/'.$post->post_type.'/', '/', $post_link); 57 } 58 } 59 return $post_link; 60 }, 10, 3); 46 61 47 62 function ply_create_menus(){ -
platformly/trunk/readme.txt
r2585949 r2610279 78 78 == Upgrade Notice == 79 79 80 = 1.11 = 81 - Fixed the 404 Page not found error for pages 82 80 83 = 1.10 = 81 84 - Pages are displayed in the sitemap
Note: See TracChangeset
for help on using the changeset viewer.