PATH:
home
/
letacommog
/
laindinois
/
wp-content
/
plugins
/
dokan-pro
/
modules
/
follow-store
/
includes
<?php class Dokan_Follow_Store_Follow_Button { /** * Class constructor * * @since 1.0.0 * * @return void */ public function __construct() { add_action( 'dokan_seller_listing_footer_content', array( $this, 'add_follow_button' ) ); add_action( 'dokan_after_store_tabs', array( $this, 'add_follow_button_after_store_tabs' ), 99 ); } /** * Add follow store button * * @since 1.0.0 * * @param WP_User $vendor * @param array $button_classes * * @return void */ public function add_follow_button( $vendor, $button_classes = array() ) { $args = dokan_follow_store_get_button_args( $vendor, $button_classes ); dokan_follow_store_get_template( 'follow-button', $args ); } /** * Add follow button in single store tabs * * @since 1.0.0 * * @param void $vendor_id * * @return void */ public function add_follow_button_after_store_tabs( $vendor_id ) { $vendor = dokan()->vendor->get( $vendor_id ); ob_start(); $this->add_follow_button( $vendor->data, array( 'dokan-btn-sm' ) ); $button = ob_get_clean(); $args = array( 'button' => $button, ); dokan_follow_store_get_template( 'follow-button-after-store-tabs', $args ); } }
[+]
..
[-] class-dokan-follow-store-email.php
[edit]
[-] functions.php
[edit]
[-] class-dokan-follow-store-vendor-email.php
[edit]
[-] class-dokan-follow-store-vendor-dashboard.php
[edit]
[-] class-dokan-follow-store-install.php
[edit]
[-] class-dokan-follow-store-follow-button.php
[edit]
[-] class-dokan-follow-store-email-loader.php
[edit]
[-] class-dokan-follow-store-my-account.php
[edit]
[-] class-dokan-follow-store-cron.php
[edit]
[-] class-dokan-follow-store-ajax.php
[edit]
[-] class-dokan-follow-store-scripts.php
[edit]
[-] class-dokan-follow-store-send-updates.php
[edit]