Plugin (or Theme) containing its own Plugins?

See Add multiple plugin directories for one way to do this. In an earlier project I did something similar, but I used a dedicated theme options page for my theme plugins. Looking back … I wouldn’t do that again. Plugin updates are a too complicated, separated version control setups too. The client wasn’t always sure … Read more

How do you change the theme location?

You can register additional directory or directories with themes by using register_theme_directory() function, that accepts filesystem path to folder. Note that this isn’t typical and even while core handles it mostly fine, third party code in themes and plugins might not.

Pre-populating the Page/Post Content Editor with HTML Snippets?

@Scott B, I just read a post on Justin Tadlocks Blog regarding this same issue. The Solution Use the default_content filter hook and it to the themes function.php file. Example: <?php add_filter( ‘default_content’, ‘my_editor_content’ ); function my_editor_content( $content ) { $content = “This is some custom content I’m adding to the post editor because I … Read more

Changing Multisite themes on mass

I wouldn’t recommend to use update_option for this task. Why? Because themes/plugins may use switch_theme action and it won’t get run in such case. And this action is pretty important – it will allow you to save your widgets for example… Another problem with Fuxias answer is that she uses template_directory hook. But there is … Read more

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