You appear to be a bot. Output may be restricted
Description
Attach the handler for this post_typeIf it's a valid post type object then find the handler and attach our filter functions
Usage
oiksc_404_handler::attach_post_type_handler();
Parameters
Returns
voidSource
File name: oik-shortcodes/classes/class-oiksc-404-handler.phpLines:
1 to 18 of 18
function attach_post_type_handler() { if ( $this->get_post_type_object() ) { $handlers = $this->handlers(); $handler = bw_array_get( $handlers, $this->post_type_object->name, null ); if ( $handler ) { if ( method_exists( $this, $handler ) ) { add_filter( "genesis_404_entry_content", array( $this, $handler ) ); } else { bw_trace2( $handler, "Using default handler method", false, BW_TRACE_ERROR ); add_filter( "genesis_404_entry_content", array( $this, "handle_post_type" ) ); } add_filter( "genesis_404_entry_title", array( $this, "entry_title" ) ); } else { // No handler method for this post_type_object } } }View on GitHub