woocommerce_navigation_current_screen_id

woocommerce_navigation_current_screen_id

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_navigation_current_screen_id') is found 2 times:

  • /src/Admin/PageController.php line 258
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    public function get_current_screen_id() {
        $current_screen = get_current_screen();
        if ( ! $current_screen ) {
            // Filter documentation below.
            return apply_filters( 'woocommerce_navigation_current_screen_id', false, $current_screen );
        }
     
        $screen_pieces = array( $current_screen->id );
     
        if ( $current_screen->action ) {
            $screen_pieces[] = $current_screen->action;
  • /src/Admin/PageController.php line 354
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
         *
         * @param string|boolean $screen_id The screen id or false if not identified.
         * @param WP_Screen      $current_screen The current WP_Screen.
         */
        return apply_filters( 'woocommerce_navigation_current_screen_id', implode( '-', $screen_pieces ), $current_screen );
    }
     
    /**
     * Returns the path from an ID.
     *
     * @param  string $id  ID to get path for.