How to change the wp_upload_dir() path in plugin

The upload directory and URL paths are stored in the options database. You can change them using update_option(): update_option( ‘upload_path’, ABSPATH . ‘/path/to/uploads’ ); update_option( ‘upload_path_url’, site_url( ‘/uploads/’ ) ); However, it’s best not to use this in a publiuc plugin, as it will cause numerous issues. We can instead hook into the filters that … Read more

Software to run on server checking outdated wordpress installations

If you can access the files from the server just include wp-includes/version.php from each installation. That file is completely stand-alone, it just defines five variables: /** * The WordPress version string * * @global string $wp_version */ $wp_version = ‘3.5.1’; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress … Read more

Wooslider custom css

You need to register and/or enqueue your stylesheet and hook it to wp_enqueue_scripts with a priority high enough that it loads after the Woothemes default. function load_my_style_wpse_87804() { wp_register_style( ‘mystyle’, get_template_directory_uri() .’/path/to/mystyle.css’); wp_enqueue_style( ‘mystyle’ ); } add_action(‘wp_enqueue_scripts’,’load_my_style_wpse_87804′,100); You may need an even higher priority (third parameter), but eventually you should get one high enough. This … Read more