Changeset 1793037
- Timestamp:
- 12/27/2017 10:45:40 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
like-share-zalo-button/trunk/like-share-zalo-button.php
r1783770 r1793037 13 13 ?> 14 14 <?php 15 if ( ! defined ( 'WPINC' ) ) {15 if ( ! defined ( 'WPINC' ) ) { 16 16 die; 17 17 } 18 19 18 20 19 add_action( 'wp_enqueue_scripts', 'lszb_enqueue_script' ); … … 23 22 } 24 23 25 // setup field for zalo setting page24 // Setup field for zalo setting page 26 25 add_action('admin_init', 'lszb_admin_init'); 27 26 function lszb_admin_init() { … … 61 60 // insert Zalo button below post content 62 61 add_filter( 'the_content', 'lszb_zalo_social_button' ); 63 function lszb_zalo_social_button( $content) {62 function lszb_zalo_social_button( $content ) { 64 63 if( is_single() && ! empty ( $GLOBALS['post'] ) ) { 65 64 if( $GLOBALS['post']->ID == get_the_ID() ) { … … 70 69 return $content; 71 70 } 72 } 71 } else { 72 return $content; 73 } 73 74 } 74 75
Note: See TracChangeset
for help on using the changeset viewer.