Changeset 2464026
- Timestamp:
- 01/28/2021 05:17:21 AM (5 years ago)
- Location:
- bingewith/trunk
- Files:
-
- 2 edited
-
bingewith.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bingewith/trunk/bingewith.php
r2368276 r2464026 3 3 // Plugin URI: https://bingewith.com 4 4 // Description: Add audio to your blog posts. This plugin takes the text of the blogs and creates audio for each individual blog posts. This works both on the individual blog post pages and the blog homepage. The audio player is placed at the top of every post. 5 // Version: 1.1 05 // Version: 1.11 6 6 // Author: BingeWith 7 7 // Author URI: https://profiles.wordpress.org/bingewith/ … … 58 58 </script>'); 59 59 */ 60 if (!function_exists("bingewith_hook_post_type_is_valid")) { 61 function bingewith_hook_post_type_is_valid($hook_post_type) { 62 if ($hook_post_type == "post") { 63 return true; 64 } 65 if ($hook_post_type == "resources") { 66 return true; 67 } 68 return false; 69 } 70 } 60 71 // Handles the placement of iframes on posts. 61 72 if (!function_exists("bingewith_post_hook")) { 62 73 63 74 function bingewith_post_hook($content) { 64 if (!is_page() && get_post() && get_post_type() == "post") {75 if (!is_page() && get_post() && bingewith_hook_post_type_is_valid(get_post_type())) { 65 76 // Add our iframe to the page if it is a post. 66 77 // Get the permalink to the post, the iframe needs it. -
bingewith/trunk/readme.txt
r2463342 r2464026 5 5 Tested up to: 5.6 6 6 Requires PHP: 5.2.4 7 Stable tag: 1.1 07 Stable tag: 1.11 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 27 27 28 28 == Changelog == 29 30 = 1.11 = 31 Adding resources post type to the supported post types 29 32 30 33 = 1.10 =
Note: See TracChangeset
for help on using the changeset viewer.