Does plugin uninstall always put WordPress back into original state?

Short answer: Plugins do not modify existing files, they hook into WordPress via an exposed API. Plugins can modify database schema. Plugins don’t have to uninstall cleanly. Plugin Hooks Plugins hook into WordPress at specific point exposed by the WordPress core. http://codex.wordpress.org/Plugin_API As an example, the function get_option() reads a site option from the database. … Read more

Disable plugins on cron and ajax page

I experienced a similar problem with an Ajax request. There are a couple of important things to note. Allow me to first state the obvious: Make sure that your code using the option_active_plugins filter is inside your mu-plugins folder. It will not work for if your plugin is a regular plugin. Not even if you … Read more

custom XMLRPC method plus authentication of user & WooCommerce order

I sent it to you on Twitter, but here it is again. I made this little class to help me do XML-RPC faster. abstract class MZAXMLRPC { protected $calls = Array(); protected $namespace = “myxmlrpc”; function __construct($namespace){ $this->namespace = $namespace; $reflector = new ReflectionClass($this); foreach ( $reflector->getMethods(ReflectionMethod::IS_PUBLIC) as $method){ if ($method->isUserDefined() && $method->getDeclaringClass()->name != get_class()){ … Read more

Admin plugin, how can I output a different content-type?

I’ve done this two ways: 1) – a csv export function – detect that special content type handling is required BEFORE wp outputs anything. add_action (‘plugins_loaded’, ‘amr_meta_handle_csv’); function amr_meta_handle_csv ($csv, $suffix=’csv’) { // chcek if there is a csv request on this page BEFORE we do anything else ? if (( isset ($_POST[‘csv’]) )) { … Read more

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