Is there any plugin hook that I can latch onto once a site is freshly installed?

if you have a file at WP_CONTENT_DIR/install.php it will be run before the upgrade starts. If you want to override specific option then you can use the pre_update_option_$optionname filter to control the value written to the DB. something like add_filter(‘pre_update_option_admin_email’,’wpse_120475_myadminmail’,10,2); function wpse_120475_myadminmail($newemail,$oldemail) { return ‘[email protected]’; } caution – wasn’t tested but I assume that the … Read more

Distributing and packaging plugins

Well, not quite sure if I understood this, but I see that you want to ‘simulate’ pages using a plugin, and my best bet is to build your own posts on-the-fly using WordPress queries and rewrite rules. Let’s try this: Create a variable to respond to your view. add_action( ‘query_vars’, ‘add_query_vars’ ); function add_query_vars( $vars … Read more

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