use get_theme_mod from all sites in network

You will have to switch to your blog using switch_to_blog( $blog->blog_id ); and the access the data you want from that blog. switch_to_blog( $blog->blog_id ); get_theme_mod(‘your_key’); This should give you customizer option data for that blog. Also I’m not sure where you are using this code, but instead of using wpdb query you can use … Read more

Remove Image Sizes in Media Settings Page

Note: you shouldn’t remove any of the default images since they’re all highly used throughout the WordPress admin. For example, on the media library page all those image blocks are technically “medium” sized images scaled down. If you click an image it will display the “large” image if possible. Otherwise, these default to show a … Read more

What is the “pub” theme? [closed]

There is no pub theme, that’s a quirk of how WordPress.com the premium 3rd party service ran by Automattic is internally structured. It’s non-standard. To be more specific WP.com doesn’t use the normal theme folder structure, and instead of searching wp-content/themes for theme folders, it searches wp-content/themes/pub and several others for themes, but mostly pub. … Read more

Is there a way to get plugins and themes not built for multisite to work on a network subsite?

Most plugins and themes don’t need to do anything special to be multisite compatible. Themes especially. So just because a theme or plugin doesn’t say it’s Multisite compatible doesn’t mean it isn’t. Sometimes plugins don’t behave well if you Network Activate them, but the workaround for that is often just to activate them on individual … Read more

Is there a function to add additional options to the Twentyeleven option page?

You can, but currently it’s not easy. You would have to override the existing code, and re-write it to extend it with your additional options. Start here: add_action( ‘admin_menu’, ‘twentyeleven_theme_options_add_page’ ); You’d need to remove this action (in your Child Theme): remove_action( ‘admin_menu’, ‘twentyeleven_theme_options_add_page’ ); Then, you would need to duplicate the twentyeleven_theme_options_add_page() function in … Read more

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