ACF_Admin_Tool_Export::get_selected_keys
get_selected_keys
This function will return an array of field group keys that have been selected
Method of the class: ACF_Admin_Tool_Export{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ACF_Admin_Tool_Export = new ACF_Admin_Tool_Export(); $ACF_Admin_Tool_Export->get_selected_keys();
Changelog
| Since 5.6.3 | Introduced. |
ACF_Admin_Tool_Export::get_selected_keys() ACF Admin Tool Export::get selected keys code ACF 6.0.4
function get_selected_keys() {
// check $_POST
if ( $keys = acf_maybe_get_POST( 'keys' ) ) {
return (array) $keys;
}
// check $_GET
if ( $keys = acf_maybe_get_GET( 'keys' ) ) {
$keys = str_replace( ' ', '+', $keys );
return explode( '+', $keys );
}
// return
return false;
}