Astra Portfolio – Remplacez le texte `Portfolio` par `Retreats` du type de publication.

logo carre@4x
<?php
/**
 * Change name `Portfolio` with `Retreats`
 *
 * @param  array  $args       Post type arguments.
 * @param  string $post_type Post type slug.
 * @return array             Filtered arguments.
 */
if( ! function_exists( 'astra_portfolio_change_portfolio_arguments' ) ) :
	function astra_portfolio_change_portfolio_arguments( $args = array(), $post_type = '' ) {
		if( 'astra-portfolio' !== $post_type ) {
			return $args;
		}

		// Change the post type title.
		$args['labels']['name'] = 'Retreats';

		return $args;
   }
   add_filter( 'register_post_type_args', 'astra_portfolio_change_portfolio_arguments', 10, 2 );
endif;