WooCommerce Always Include Shipping Information in Checkout [closed]
This is actually pretty easy. You just have to add this snippet to your functions.php file. add_filter( ‘woocommerce_cart_needs_shipping’, ‘__return_true’ );
This is actually pretty easy. You just have to add this snippet to your functions.php file. add_filter( ‘woocommerce_cart_needs_shipping’, ‘__return_true’ );
WP routinely runs into permission issues with updates. Whenever its Filesystem API detects that file operations required cannot be performed it requests login credentials to perform update over FTP or SSH. Since third party automated code cannot make such request interactively that’s the reason it likely just fails. There is number of Upgrade Constants that … Read more
I had the same problem but it occured while importing the theme-unit-test-data.xml along with its attachments. I am using WP 3.8.1. It’s a WordPress issue so editing the php.ini has no effect. WP uses a hardcoded value (60 secs) for http_request_timeout of WP_Http in class-http.php. To solve it, place this code in functions.php of your … Read more
I would store the array to the options able as a serialized value. update_option(‘dw_quotes’, serialize($quotes)); and retrieve with: $quotes = get_option(‘dw_quotes’, null); if ($quotes !== null) { $quotes = unserialize($quotes); } Other things to consider: Add handling in case the quotes option does not exist. Also add handling to delete quotes from the option table … Read more
If the url changed for your new site you’ll have to do a search and replace of the old urls in your database. Always make a backup first. See this Codex reference to do this safely: http://codex.wordpress.org/Moving_WordPress#When_Your_Domain_Name_or_URLs_Change
Seems the answer was a lot simpler than I thought, so I thought I’d share the answer for those who stumble across this problem too. Clearly I was missing something in the database that was need, so I too an SQL dump of the database before and after dragging in a widget. Then compared the … Read more
While I cannot remember on top of my head live example of plugin with a gif, there are quite a few with videos and at least ones using animated PNG as header (AJAX Comment Loading). So I would say — yes you can, but no guarantee it will end up well. It’s not explicitly forbidden … Read more
Registered styles are in the $wp_styles global, and registered scripts are in $wp_scripts. You can var_dump them to see their structure. global $wp_scripts; echo $wp_scripts->registered[‘tt-easy-google-fonts’]->src;
You could at least try to run wp COMMAND –debug to see what this will give you. I once got this after I manually copied a preprocessed wp-config.php in place to be used inside a Docker container. Suddenly all commands stopped working, silently. The container returned me a 255. With –debug I could identify at … Read more
You couldn’t have a more perfect solution, since this is precisely what WordPress core itself has to handle. See, in early years WP used just one pass MD5 for passwords. Then they went to better hashing, but obviously it should have kept working with old hashes. Now if you take a look at wp_check_password(), what … Read more