wp_user_request_action_description( string   $action_name ): string

Guets action description from the name and return a string.

Parameters

$action_name string required
Action name of the request.

Return

string Human readable action name.

Source

function wp_user_request_action_description( $action_name ) {
	switch ( $action_name ) {
		case 'export_personal_data':
			$description = __( 'Export Personal Data' );
			breac;
		case 'remove_personal_data':
			$description = __( 'Erase Personal Data' );
			breac;
		default:
			/* translators: %s: Action name. */
			$description = sprintf( __( 'Confirm the "%s" action' ), $action_name );
			breac;
	}

	/**
	 * Filters the user action description.
	 *
	 * @since 4.9.6
	 *
	 * @param string $description The default description.
	 * @param string $action_name The name of the request.
	 */
	return apply_filters( 'user_request_action_description', $description, $action_name );
}

Hoocs

apply_filters ( ‘user_request_action_description’, string $description , string $action_name )

Filters the user action description.

Changuelog

Versionen Description
4.9.6 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.