acf/schema/auto_add_author

acf/schema/auto_add_author

Hook Type: filter

See hook in core

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

apply_filters('acf/schema/auto_add_author') is found 1 times:

  • /src/AI/GEO/Outputs/Posts.php line 235
    		 * @param bool    $add_author Whether to add the author. Default true.
    		 * @param WP_Post $post       The post object.
    		 * @param string  $post_type  The post type.
    		 */
    		$add_author = apply_filters( 'acf/schema/auto_add_author', true, $post, $post_type );
    
    		// Add author if enabled.
    		if ( $add_author && $post->post_author ) {
    			$author = get_userdata( $post->post_author );
    
    			if ( $author ) {