Choose which cookies we can use. You can change this at any time from “Cookie settings” in the footer. See our cookie policy for details.

Essential

Needed for the site to work, such as remembering your cookie choices. These can’t be switched off.

Always on
Skip to content
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;
    } );