Add revisions to the Custom Layouts

Custom Layouts is a premium feature available with Astra Pro Addon plugin. To use these pro features, you need to have the Astra theme along with the Astra Pro Addon installed on your website.

In case you wish to display revisions information in the Astra Custom Layouts use the following custom code:

add_filter( 'astra_advanced_hooks_supports', 'astra_add_revision_cl' );
 
/**
 * Add revisions support to the Custom Layout.
 *
 * @param array $defaults Default values to the `support` param.
 *
 * @return array
 */
function astra_add_revision_cl( $defaults ) {
	$defaults[] = 'revisions';
	return $defaults;
}

Note: Add the above code into the child theme’s functions.php file.

In the below image you can see how the revisions are displayed in the Custom Layouts section –

Not the solution you are looking for? Check other articles, or open a support ticket.