wphooks.info - register_post_type_args

register_post_type_args

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/class-wp-post-type.php:
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
		$args = wp_parse_args( $args );

		/**
		 * Filters the arguments for registering a post type.
		 *
		 * @since 4.4.0
		 *
		 * @param array  $args      Array of arguments for registering a post type.
		 * @param string $post_type Post type key.
		 */
		$args = apply_filters( 'register_post_type_args', $args, $this->name );

		$has_edit_link = ! empty( $args['_edit_link'] );

		// Args prefixed with an underscore are reserved for internal use.
		$defaults = array(
			'labels'                => array(),
			'description'           => '',
			'public'                => false,
			'hierarchical'          => false,