strip_tags( $item[ 'title' ] ),
);
$return_list = array_merge( $return_list, $current_item_array );
}
}
}
return $return_list;
}
/**
* Function to return the CSS to hide formatted and ready to be output in our admin CSS section.
*
* @param string The output of the css_to_hide field in the options.
* @return string The formatted CSS based on the css_to_hide-field.
* @since 1.0.0
*
*/
function wpbizplugins_uac_get_css_to_hide( $css_to_hide ) {
global $wpbizplugins_uac_options;
$css_to_hide_array = explode( '&', $css_to_hide );
$css = '';
return $css;
}
function wpbizplugins_uac_get_js_for_login( $js ) {
$return_string = '';
return $return_string;
}
function wpbizplugins_uac_get_css_for_login( $options ) {
$css = '';
return $css;
}
/**
* Return array of capabilities for use with restricting access to editing the plugin contents.
*
* @return array Returns an array of all available capabilities.
* @since 1.0.0
*
*/
function wpbizplugins_uac_return_capabilities_array() {
$capabilities_array = array(
'activate_plugins',
'add_users',
'create_users',
'delete_others_pages',
'delete_others_posts',
'delete_pages',
'delete_plugins',
'delete_posts',
'delete_private_pages',
'delete_private_posts',
'delete_published_pages',
'delete_published_posts',
'delete_themes',
'delete_users',
'edit_dashboard',
'edit_others_pages',
'edit_others_posts',
'edit_pages',
'edit_plugins',
'edit_posts',
'edit_private_pages',
'edit_private_posts',
'edit_published_pages',
'edit_published_posts',
'edit_theme_options',
'edit_themes',
'edit_users',
'export',
'import',
'install_plugins',
'install_themes',
'list_users',
'manage_categories',
'manage_links',
'manage_options',
'moderate_comments',
'promote_users',
'publish_pages',
'publish_posts',
'read',
'read_private_pages',
'read_private_posts',
'remove_users',
'switch_themes',
'unfiltered_html',
'unfiltered_upload',
'update_core',
'update_plugins',
'update_themes',
'upload_files'
);
$capabilities_array_keypair = array();
foreach( $capabilities_array as $capability ) {
$capabilities_array_keypair[$capability] = $capability;
}
return $capabilities_array_keypair;
}
/**
* Function to return CSS for general styling of the admin seection.
*
* @return string Contains the CSS.
* @since 1.0.0
*
*/
function wpbizplugins_uac_get_admin_styling_css( $options ) {
ob_start();
?>