We are hiring

ualp_options_array

Description

This filter hook allows you to change the wordpress options(settings). The default options(settings) are as listed below.
// General
‘blogname’,
‘blogdescription’,
‘siteurl’,
‘home’,
‘admin_email’,
‘users_can_register’,
‘default_role’,
‘timezone_string’,
‘date_format’,
‘time_format’,
‘start_of_week’,
‘gmt_offset’,
‘WPLANG’,
‘new_admin_email’,
// Writing
‘use_smilies’,
‘use_balanceTags’,
‘default_category’,
‘default_post_format’,
‘mailserver_url’,
‘mailserver_login’,
‘mailserver_pass’,
‘mailserver_port’,
‘default_email_category’,
‘default_link_category’,
‘ping_sites’,
// Reading
‘show_on_front’,
‘page_on_front’,
‘page_for_posts’,
‘posts_per_page’,
‘posts_per_rss’,
‘rss_use_excerpt’,
‘blog_public’,
// Discussion
‘default_pingback_flag’,
‘default_ping_status’,
‘default_comment_status’,
‘require_name_email’,
‘comment_registration’,
‘close_comments_for_old_posts’,
‘close_comments_days_old’,
‘thread_comments’,
‘thread_comments_depth’,
‘page_comments’,
‘comments_per_page’,
‘default_comments_page’,
‘comment_order’,
‘comments_notify’,
‘moderation_notify’,
‘comment_moderation’,
‘comment_whitelist’,
‘comment_max_links’,
‘moderation_keys’,
‘blacklist_keys’,
‘show_avatars’,
‘avatar_rating’,
‘avatar_default’,
// Media
‘thumbnail_size_w’,
‘thumbnail_size_h’,
‘thumbnail_crop’,
‘medium_size_w’,
‘medium_size_h’,
‘large_size_w’,
‘large_size_h’,
‘uploads_use_yearmonth_folders’,
// Network
‘registrationnotification’,
‘registration’,
‘add_new_users’,
‘menu_items’,
‘upload_space_check_disabled’,
‘blog_upload_space’,
‘upload_filetypes’,
‘site_name’,
‘first_post’,
‘first_page’,
‘first_comment’,
‘first_comment_url’,
‘first_comment_author’,
‘welcome_email’,
‘welcome_user_email’,
‘fileupload_maxk’,
‘global_terms_enabled’,
‘illegal_names’,
‘limited_email_domains’,
‘banned_email_domains’,
‘blog_count’,
‘user_count’

If you want to remove any from default or add new field, this hook will allow you to change the fields.

 

Usage

add_filter( 'ualp_options_array', 'my_options_array' );
 
function my_options_array( $get_dafault_options_array ) {
 
    // remove tag line from log
    if (($key = array_search('blogdescription', $get_dafault_options_array)) !== false) {
        unset($get_dafault_options_array[$key]);
    }
 
    //return array
    return $get_dafault_options_array;
}

Get Connected

Due to high download request and stop spamming we request you to please register and enjoy all free themes, plugins and extensions with out hassels.

CLICK HERE

to register or login and start downloading free products.
you will be redirected to registration page soon....
Avartan Slider Plugin v1.7 is available on Codecanyon now!
Avartan Slider – Premium WordPress Plugin
Thanks for signing up. You must confirm your email address before we can send you. Please check your email and follow the instructions.
We respect your privacy. Your information is safe and will never be shared.
Don't miss out. Subscribe today.
×
×