acf/post_type/available_supports

acf/post_type/available_supports

Hook Type: filter

See hook in core

Displaying hooks found in version: advanced-custom-fields.6.8.0

apply_filters('acf/post_type/available_supports') is found 1 times:

  • /includes/admin/views/acf-post-type/advanced-settings.php line 46
    				'excerpt'         => __( 'Excerpt', 'acf' ),
    				'page-attributes' => __( 'Page Attributes', 'acf' ),
    				'post-formats'    => __( 'Post Formats', 'acf' ),
    			);
    			$acf_available_supports = apply_filters( 'acf/post_type/available_supports', $acf_available_supports, $acf_post_type );
    			$acf_selected_supports  = is_array( $acf_post_type['supports'] ) ? $acf_post_type['supports'] : array();
    
    			// Notes should be disabled if editor is not selected.
    			$acf_supports_disabled = array();
    			if ( ! in_array( 'editor', $acf_selected_supports, true ) ) {
    				$acf_supports_disabled[] = 'notes';