<?php echo do_shortcode('[posts_like_dislike id=post_id]');?>
/** * Filters the tabs * * @since 1.0.0 * * @param array $pld_tabs */ $pld_tabs = apply_filters( 'pld_admin_tabs', $pld_tabs );
/** * Filters total number or templates * * @param int * * @since 1.0.0 */ $pld_total_templates = apply_filters( 'pld_total_templates', 4 );
/** * Filters the array stored in the database * * @param type array $pld_settings * * @since 1.0.0 */ update_option( 'pld_settings', apply_filters( 'pld_settings', $pld_settings ) );
/** * Filters Like Dislike HTML * * @param string $like_dislike_html * @param array $pld_settings * * @since 1.0.0 */ $post_text .= apply_filters( 'pld_like_dislike_html', $like_dislike_html, $pld_settings );
/** * Filters deault settings * * @param type array $default_settings * * @since 1.0.0 */ return apply_filters( 'pld_default_settings', $default_settings );
/** * Filters like count * * @param type int $like_count * @param type int $post_id * * @since 1.0.0 */ $like_count = apply_filters( 'pld_like_count', $like_count, $post_id );
/** * Filters dislike count * * @param type int $dislike_count * @param type int $post_id * * @since 1.0.0 */ $dislike_count = apply_filters( 'pld_dislike_count', $dislike_count, $post_id );
/** * Fires before storing the settings array into database * * @param type array $settings_data - before sanitization * @param type array $pld_settings - after sanitization * * @since 1.0.0 */ do_action( 'pld_before_save_settings', $settings_data, $pld_settings );
/** * Fires while generating the like dislike html * * @param type string $post_text * @param type array $post * * @since 1.0.0 */ do_action( 'pld_like_dislike_output', $post_text, $post );
/** * Fires when Init hook is fired through plugin * * @since 1.0.0 */ do_action('pld_init');
/** * Fires on backend template preview* Fires on backend template preview * * Useful to add additional templates in backend * Fires on backend template preview* Fires on backend template preview* * @param array $pld_settings * * @since 1.0.0 * */ do_action( 'pld_template_previews' );
/** * Fires when displaying the tabs section * * @param array $pld_settings * * @since 1.0.0 */ do_action( 'pld_admin_tab_section', $pld_settings );
/** * Fires when template is being loaded * * @param array $pld_settings * * @since 1.0.0 */ do_action( 'pld_dislike_template', $pld_settings );
/** * Fires when template is being loaded * * @param array $pld_settings * * @since 1.0.0 */ do_action( 'pld_like_template', $pld_settings );
/** * Action pld_before_ajax_process * * Fires just before processing the ajax request when like or dislike button is clicked * * @param type int $post_id * * @since 1.0.0 */ do_action( 'pld_before_ajax_process', $post_id );
/** * Action pld_after_ajax_process * * Fires after the ajax process is complete when like or dislike button is clicked just before printing the response * * @param type int $post_id * * @since 1.0.0 */ do_action( 'pld_after_ajax_process', $post_id );
/** * Action pld_before_undo_ajax_process * Fires just before the undo ajax process * * @param type int $post_id * * @since 1.1.9 */ do_action('pld_before_undo_ajax_process', $post_id);
/** * Action pld_after_undo_ajax_process * Fires just after the undo ajax process * * @param type int $post_id * * @since 1.1.9 */ do_action('pld_after_undo_ajax_process', $post_id);