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

Post ID Display hooks

2 filters and actions, read from the plugin source. Add these in a theme’s functions.php or a Code Snippet.

  • filter Pro

    wpextended/post-id-display/excluded_post_types

    add_filter( 'wpextended/post-id-display/excluded_post_types', function ( $value ) {
        return $value;
    } );
  • filter Pro

    wpextended/post-id-display/post_types

    Filters the post types offered in this module’s settings.

    $options
    (array) post type key => label

    Returns: array

    add_filter( 'wpextended/post-id-display/post_types', function ( $options ) {
        return $options;
    } );