[Solved] wp_temp_dir does not change the /tmp temporary default directory

sys_get_temp_dir is not a WordPress function, it’s a core PHP function. It cannot be modified or changed using WordPress constants. To modify this would require changes to the servers operating system by the root user. Instead, WP_TEMP_DIR can be used to influence the value of get_temp_dir which is a WordPress function. In the event that … Read more

[Solved] Using get_theme_mod with checkbox to display content

Here is a modified version of your original code. Your echo statement isn’t right and really isn’t necessary. It’s probably better to jump out of PHP like I’ve done in the code below. Also, the unnecessary else statement was removed: <?php $servicescontent = get_theme_mod( ‘services-page’, 1 ); $abc = get_theme_mod( ‘services-check’, 1 ); $mod = … Read more

[Solved] How to upgrade WordPress automatically?

By default WordPress automatically updates itself, plugins, and themes. If your WordPress install doesn’t do that then you probably have something that disables this. You can check your theme for something like this add_filter(‘auto_update_plugin’, ‘__return_false’); add_filter(‘auto_update_theme’, ‘__return_false’); And/Or in your wp-config.php define(‘AUTOMATIC_UPDATER_DISABLED’, true); define(‘WP_AUTO_UPDATE_CORE’, false); If your WordPress is not on a local machine and … Read more

[Solved] [Solved] How to upgrade WordPress automatically?

By default WordPress automatically updates itself, plugins, and themes. If your WordPress install doesn’t do that then you probably have something that disables this. You can check your theme for something like this add_filter(‘auto_update_plugin’, ‘__return_false’); add_filter(‘auto_update_theme’, ‘__return_false’); And/Or in your wp-config.php define(‘AUTOMATIC_UPDATER_DISABLED’, true); define(‘WP_AUTO_UPDATE_CORE’, false); If your WordPress is not on a local machine and … Read more

[Solved] [Solved] [Solved] How to upgrade WordPress automatically?

By default WordPress automatically updates itself, plugins, and themes. If your WordPress install doesn’t do that then you probably have something that disables this. You can check your theme for something like this add_filter(‘auto_update_plugin’, ‘__return_false’); add_filter(‘auto_update_theme’, ‘__return_false’); And/Or in your wp-config.php define(‘AUTOMATIC_UPDATER_DISABLED’, true); define(‘WP_AUTO_UPDATE_CORE’, false); If your WordPress is not on a local machine and … Read more

[Solved] wp.getUsers XML-RPC method is returning only 50 users, how can i get all the users

I’m unable to find a XML-RPC method called wp.getUsers in wp-includes/class-wp-xmlrpc-server.php. Could it be, that you’re using an additional plugin that extends the basic behavior of WordPress? A simple google search for ‘wp.getUsers’ points me to the the github repo of Max Cutler and the class wp-xmlrpc-modernization. There you have a method wp.getUsers which accepts … Read more

[Solved] WordPress wp_nav_menu within iFrame

To get a working nav menu WordPress needs to be set up complete. My suggestion is to use add_feed(). Ignore the name, you get text/html as output. Let’s start with code <?php # -*- coding: utf-8 -*- /* Plugin Name: T5 Iframe Nav Menu Description: Display a nav menu in an iframe. Version: 2012.05.18 Refresh … Read more

[Solved] The editor has encountered an unexpected error. // TypeError: Cannot read property ‘prefix’ of null

So, I was researching this topic a bit deeper. All answers found on this SE suggested disabling Gutenberg with a plugin. This couldn’t be a valid “fix” in my oppinion. After researching and browsing through the git issues of WordPress/gutenberg I’ve found a pretty easy solution for this problem. The user joshuafredrickson on the git … Read more

[Solved] Woocommerce category description as subtitle

There is an extra hook you can use for this woocommerce_archive_description, hook into it like this: add_action( ‘woocommerce_archive_description’, ‘wc_category_description’ ); function wc_category_description() { if ( is_product_category() ) { global $wp_query; $cat_id = $wp_query->get_queried_object_id(); $cat_desc = term_description( $cat_id, ‘product_cat’ ); $subtit=”<span class=”subtitle”>”.$cat_desc.'</span>’; echo $subtit; } } 0 solved Woocommerce category description as subtitle

[Solved] How to add wordpress username after url?

You can do <?php if( get_current_user_id() ): // check if user is loggedin $current_user = wp_get_current_user(); //get user ?> <a href=”https://direktoriku.com/shopping/?user=<?php echo $current_user->user_login;?> <button>Click me</button> </a> <?php endif;?> 1 solved How to add wordpress username after url?