芝麻web文件管理V1.00
编辑当前文件:/home/ezdajrnh/public_html/wp-content/plugins/google-listings-and-ads/src/Notes/CompleteSetup.php
set_title( __( 'Reach more shoppers with product feed on Google', 'google-listings-and-ads' ) ); $note->set_content( __( 'Finish setting up Google for WooCommerce to list your products on Google for free and promote them with ads.', 'google-listings-and-ads' ) ); $note->set_content_data( new stdClass() ); $note->set_type( NoteEntry::E_WC_ADMIN_NOTE_INFORMATIONAL ); $note->set_layout( 'plain' ); $note->set_image( '' ); $note->set_name( $this->get_name() ); $note->set_source( $this->get_slug() ); $note->add_action( 'complete-setup', __( 'Finish setup', 'google-listings-and-ads' ), $this->get_start_url() ); return $note; } /** * Checks if a note can and should be added. * * Check if setup IS NOT complete * Check if a stores done 5 sales * Send notification * * @return bool */ public function should_be_added(): bool { if ( $this->has_been_added() ) { return false; } if ( $this->merchant_center->is_setup_complete() ) { return false; } if ( ! $this->has_orders( 5 ) ) { return false; } return true; } }