Using actions, hooks and filters in a non-WordPress page

It’s catch 22 – you need WordPress to use the hook system, but init will have already fired during load (wp-settings.php to be exact). I would create a MU “Must Use” plugin (wp-content/mu-plugins/any-filename.php) for all your “outside of WordPress” functionality, with something like this at the start: if ( ! defined( ‘LOADED_EXTERNAL’ ) || ! … Read more

Integrating a hosted app with wordpress using the API

One way to go about doing this kind of thing is to add some settings to the plugin they are installing such as the following: (Blankman’s Site – Your User Name) (Blankman’s Site – Your Password) (Blankman’s Site – User Name to access your site) (Blankman’s Site – Password to access your site) The user … Read more

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