WC_Admin_Post_Types::update_filename()
Метод класса: WC_Admin_Post_Types{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WC_Admin_Post_Types = new WC_Admin_Post_Types(); $WC_Admin_Post_Types->;
Список изменений
С версии 4.0 | Введена. |
Код WC_Admin_Post_Types::update_filename() WC Admin Post Types::update filename WC 8.7.0
if ( $post && absint( $post->ID ) === $shop_page_id ) { echo '<div class="notice notice-info">'; /* translators: %s: URL to read more about the shop page. */ echo '<p>' . sprintf( wp_kses_post( __( 'This is the WooCommerce shop page. The shop page is a special archive that lists your products. <a href="%s">You can read more about this here</a>.', 'woocommerce' ) ), 'https://woo.com/document/woocommerce-pages/#section-4' ) . '</p>'; echo '</div>'; } } /** * Add a post display state for special WC pages in the page list table. * * @param array $post_states An array of post display states. * @param WP_Post $post The current post object. */ public function add_display_post_states( $post_states, $post ) { if ( wc_get_page_id( 'shop' ) === $post->ID ) {