F80
Showing the single result
atus. * * @return string */ public static function get_feed_status_extra_info() { if ( self::is_product_sync_enabled() ) { return ''; } if ( ! Pinterest_For_Woocommerce()::is_domain_verified() ) { return sprintf( /* translators: 1: The URL of the connection page */ __( 'The domain is not verified, visit the connection page to verify it.', 'pinterest-for-woocommerce' ), esc_url( add_query_arg( array( 'page' => 'wc-admin', 'path' => '/pinterest/connection', ), admin_url( 'admin.php' ) ) ) ); } if ( ! Pinterest_For_Woocommerce()::is_tracking_configured() ) { return sprintf( /* translators: 1: The URL of the connection page */ __( 'The tracking tag is not configured, visit the connection page to configure it.', 'pinterest-for-woocommerce' ), esc_url( add_query_arg( array( 'page' => 'wc-admin', 'path' => '/pinterest/connection', ), admin_url( 'admin.php' ) ) ) ); } return sprintf( /* translators: 1: The URL of the settings page */ __( 'Visit the settings page to enable it.', 'pinterest-for-woocommerce' ), esc_url( add_query_arg( array( 'page' => 'wc-admin', 'path' => '/pinterest/settings', ), admin_url( 'admin.php' ) ) ) ); } /** * Handles de-registration of the feed. * * @return void */ private static function deregister() { FeedGenerator::deregister(); LocalFeedConfigs::deregister(); FeedRegistration::deregister(); ProductFeedStatus::deregister(); self::log( 'Product feed reset and files deleted.' ); } /** * Stop jobs on deactivation. */ public static function cancel_jobs() { if ( ! function_exists( 'as_unschedule_all_actions' ) ) { return; } FeedGenerator::cancel_jobs(); FeedRegistration::cancel_jobs(); } /** * Check if Given ID is of a product and if yes, mark feed as dirty. * * @param integer $product_id The product ID. * * @return void */ public static function mark_feed_dirty( $product_id ) { if ( ! wc_get_product( $product_id ) ) { return; } self::$feed_generator->mark_feed_dirty(); } }