Developer reference
Disable Blog hooks
3 filters and actions, read from the plugin source. Add these in a theme’s functions.php or a Code Snippet.
- filter Pro
wpextended/disable-blog/post_blocks
add_filter( 'wpextended/disable-blog/post_blocks', function ( $value ) { return $value; } ); - filter Pro
wpextended/disable-blog/post_type_arguments
add_filter( 'wpextended/disable-blog/post_type_arguments', function ( $value ) { return $value; } ); - filter Pro
wpextended/disable-blog/unregister_taxonomies
Filter the list of taxonomies to fully unregister. Return an associative array of taxonomy => bool, where true means the taxonomy will be fully unregistered (removed from globals and unregistered), and false means it will be kept registered (useful if used by custom post types).
- $defaults
- (array) Default map of taxonomies to unregister.
add_filter( 'wpextended/disable-blog/unregister_taxonomies', function ( $defaults ) { return $defaults; } );
