Description
Filter the path to the view file. This allows for custom views for the WP Data Sync admin.
Usage
add_filter(
'wp_data_sync_view'
,
'my_view'
, 10, 2
);
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'
,
'my_view'
, 10, 2
);
function
my_view
(
$view
,
$name
) {
if
(
$name
===
'custom-view'
) {
$view
=
'../full-path/custom-view.php'
;
}
return
$view
;
}