Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




remove_post_type_support [ WordPress Function ]

remove_post_type_support ( $post_type, $feature )
Parameters:
  • (string) $post_type The post type for which to remove the feature
  • (string) $feature The feature being removed
Defined at:



Remove support for a feature from a post type.

Source


<?php
function remove_post_type_support$post_type$feature ) {
    global 
$_wp_post_type_features;

    if ( !isset(
$_wp_post_type_features[$post_type]) )
        return;

    if ( isset(
$_wp_post_type_features[$post_type][$feature]) )
        unset(
$_wp_post_type_features[$post_type][$feature]);
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics