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;
}
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....

Download is Just A Click Away!

Enter your name and email address and subscribe with us to get latest updates.

Your download is just a click away

By downloading this free product, I agree to subscribe Solwin Infotech newsletter, receive commercial information from Solwin Infotech. I can withdraw my consent at anytime. The data will be processed until the consent is withdrawn.