Site Title and Tagline in Theme Options Page

The framework offers a filter for validating input values inside the optionsframework_validate function. Just for reference, here’s the relevant part from the file wp-content/themes/your-theme/inc/options-framework.php: /** * Validate Options. * * This runs after the submit/reset button has been clicked and * validates the inputs. */ function optionsframework_validate( $input ) { /* code */ $clean[$id] = … Read more

How can I get all user options?

You will get all the meta for the user by using get_user_meta function $all_meta_for_user = get_user_meta( [user ID] ); echo “<pre>”; print_r( $all_meta_for_user );

How do I share plugin settings across WordPress network?

The generic way to do it, is by using the pre_option_{option} https://codex.wordpress.org/Plugin_API/Filter_Reference/pre_option_(option_name) filter to override the “local” settings and use the value being stored in your “main” sub site. something like add_filter( ‘pre_option_the_plugin_option_name’, function () { // Code assumes that “blog” 1 is the main one in which the relevant settings are stored. if (get_current_blog_id() … Read more

get_option function

You are using get_option() wrong, first variant, so take another look at the get_option() documentation. Basically you can’t directly access an array element with the function, it just doesn’t support it. The second variant should be possible, but you need at least PHP 5.4 – if I’m not totally mistaken; I don’t know anything about … Read more

wp-admin pages return ERR_EMPTY_RESPONSE

https://core.trac.wordpress.org/ticket/42345 After a lot of digging and following segfaults in strace and parsing out apache core dumps (and enlisting some outside help from a much more knowledgeable Linux guy) I dug this up on WordPress’s site. The short answer to the problem is that there is an issue with PHP5 and libssh2 that was introduced … Read more

Moving WordPress.com theme and widget settings to self-hosted site?

First off, check if the theme is available in wordpress.org themes: http://wordpress.org/extend/themes/ If it’s not, find the name of the theme developer and contact them. Many developers of wordpress.com themes are happy for people to use their themes on self-hosted WordPress blogs. The developer’s name and contact details can be found by looking at style.css. … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)