duplicate_post_enabled_post_types

duplicate_post_enabled_post_types

Hook Type: filter

See hook in core

Displaying hooks found in version: duplicate-post.4.5

apply_filters('duplicate_post_enabled_post_types') is found 2 times:

  • /common-functions.php line 26
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
            $duplicate_post_types_enabled = [ $duplicate_post_types_enabled ];
        }
     
        /** This filter is documented in src/permissions-helper.php */
        $duplicate_post_types_enabled = apply_filters( 'duplicate_post_enabled_post_types', $duplicate_post_types_enabled );
        return in_array( $post_type, $duplicate_post_types_enabled, true );
    }
     
    /**
     * Template tag to retrieve/display duplicate post link for post.
     *
  • /src/permissions-helper.php line 36
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
         * @param array $enabled_post_types The array of post type names for which the plugin is enabled.
         *
         * @return array The filtered array of post types names.
         */
        return \apply_filters( 'duplicate_post_enabled_post_types', $enabled_post_types );
    }
     
    /**
     * Determines if post type is enabled to be copied.
     *
     * @param string $post_type The post type to check.