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.8.7.0

apply_filters('woocommerce_navigation_current_screen_id') is found 2 times:

  • /src/Admin/PageController.php line 254
    	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 348
    		 *
    		 * @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.