Changeset 2373124
- Timestamp:
- 09/01/2020 01:34:02 PM (6 years ago)
- Location:
- audiate-me/trunk
- Files:
-
- 3 edited
-
audiate.php (modified) (1 diff)
-
includes/audiate-widget.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
audiate-me/trunk/audiate.php
r2364787 r2373124 8 8 * Plugin URI: https://www.audiate.me 9 9 * Description: Transform your content into audio to reach a larger audience with our Text-to-Speech widget. 10 * Version: 1.2. 210 * Version: 1.2.3 11 11 * Author: Audiate.Me 12 12 * License: GPLv2 or later -
audiate-me/trunk/includes/audiate-widget.php
r2364787 r2373124 103 103 add_filter('the_content', function( $content ) { 104 104 return $this->add_code_to_post_content( $content, false ); 105 }, 0, 2 );105 }, 14264, 2 ); 106 106 } 107 107 else if ($this->options['position_4'] === 'after_title') { 108 108 add_filter('the_title', function( $content ) { 109 109 return $this->add_code_to_post_content( $content, true ); 110 }, 0, 2 );110 }, 14264, 2 ); 111 111 } 112 113 112 114 113 add_shortcode('audiate-widget', 'getShortCode'); … … 128 127 */ 129 128 public function add_code_to_post_content($content, $isAfterContent) { 130 global $post ;129 global $post, $wp_filter; 131 130 $allowedPostTypes = array('post', 'page'); 132 131 133 132 if (is_singular($allowedPostTypes) && is_single() && in_the_loop() && is_main_query()) { 133 134 if(isset($wp_filter[ 'the_title' ]) && isset($wp_filter[ 'the_title' ]->callbacks[ 14264 ])) { 135 unset($wp_filter['the_title']->callbacks[14264]); 136 } 134 137 135 138 $widget = $this->get_code(); … … 138 141 get_post_type() === 'post' && $this->options['show_on_all_posts_1'] === 'yes' || 139 142 get_post_type() === 'page' && $this->options['show_on_all_pages_3'] === 'yes' 140 141 143 ) { 142 144 return AudiateWidget::stitchWidget($content , $widget, $isAfterContent); 143 145 } 144 145 146 146 147 147 $showOnPost = get_post_meta($post->ID, self::$fieldKey, true); -
audiate-me/trunk/readme.txt
r2364787 r2373124 6 6 License URI: http://www.gnu.org/licenses/gpl-2.0.html 7 7 Tested up to: 5.4 8 Stable tag: 1.2. 28 Stable tag: 1.2.3 9 9 10 10 Elevate Your Content with Audio. Transform your content into audio to reach a larger audience with our Text-to-Speech widget.
Note: See TracChangeset
for help on using the changeset viewer.