Paul Barthmaier (pbrocks)
Forum Replies Created
-
Forum: Localhost Installs
In reply to: write problem for plugins on win10 / localhostWhen plugins are updated, WordPress looks for the /upgrade folder in /wp-content. If it doesn’t exist or doesn’t have the proper permissions, then the upgrade will fail. If you don’t see the folder at all, just create a blank one called
upgradeand then try to update. your plugin.Forum: Fixing WordPress
In reply to: Error establishing a database connectionHi there,
What this error is telling you is that the database information in the wp-config.php file isn’t correct or that the database user doesn’t have the proper permissions. You can find ways to troubleshoot.
Forum: Plugins
In reply to: [Max Mega Menu] z-index issueSuper helpful!! Thanks. Sadly, I think that was diagnostic code that got left over! Really appreciate the sage advice.
Forum: Fixing WordPress
In reply to: To prevent deleting reusable blocks@arskrigitsioniets You can grab the arguments for the post type object and change them to whatever you want. In this case, it looks like the post type is
wp_block$post_type_object = get_post_type_object( 'wp_block' ); echo '<pre>$post_type_object '; print_r( $post_type_object ); echo '</pre>';Then add a function to your codebase like:
add_action( 'init', 'adjust_reusable_blocks_register_template' ); function adjust_reusable_blocks_register_template() { $post_type_object = get_post_type_object( 'wp_block' ); $post_type_object->cap->edit_post = 'manage_options'; $post_type_object->cap->edit_posts = 'manage_options'; $post_type_object->cap->delete_post = 'manage_options'; $post_type_object->cap->delete_posts = 'manage_options'; $post_type_object->cap->delete_private_posts = 'manage_options'; $post_type_object->cap->delete_published_posts = 'manage_options'; $post_type_object->cap->delete_others_posts = 'manage_options'; $post_type_object->cap->edit_private_posts = 'manage_options'; }Then compare the settings of the arguments to see if it suits your needs.
Forum: Plugins
In reply to: [Gutenberg] I’m on the classic editor and want to switch back to GutunbergSounds like you need to disable the Classic Editor plugin.