Description
Filter the path to the view file. This allows for custom views for the WP Data Sync admin.
Usage
apply_filters( 'wp_data_sync_view', $view, $name );
Parameters
$view | string | Full path to the view file | $name | string | The name of the view file |
Code Example
add_filter( 'wp_data_sync_view', function( $view, $name ) {
if ( $name === 'custom-view' ) {
$view = '../full-path/custom-view.php';
}
return $view;
), 10, 2 );