Changing plugin slug with update

If you just wanted to just change the filename you would have both myPlugin.php and myplugin.php in the plugin and then update the option active_plugins in the database to the new name. Once all of the users have updated you can remove myPlugin.php. But you want to rename both the folder and filename. I would … Read more

wp core update not working anymore

What is inside your version.php file? File: /wp-includes/version.php 1: <?php 2: /** 3: * The WordPress version string 4: * 5: * @global string $wp_version 6: */ 7: $wp_version = ‘4.7.1’; You can play with that number and test. You can try to install the latest version of WP Cli and test. You may update … Read more

How to update WordPress and plugins at specific day and time in PHP?

There’s a question and an answer regarding WP (auto) updates here, How To/What triggers a WordPress auto update? The answer also has a link to a blog post on how to force WordPress auto-update. Code snippet posted on the referenced blog, <?php // request-update.php require( dirname(__FILE__) . ‘/wp-load.php’ ); wp_maybe_auto_update(); ?> and php ./request-update.php Perhaps … Read more

WordPress error – PHP Fatal error: Uncaught Error: Call to undefined function register_block_type_from_metadata()

What comes to my mind is that You should check Your wp-settings.php file, as it should include wp-includes/blocks.php file where “register_block_type_from_metadata” function is defined check that file for this line of code: require ABSPATH . WPINC . ‘/blocks.php’; if its not there, then Your wordpress installation could have been either hacked or interupted while updating … Read more

Custom Shortcode and Button not Working after 3.9 update

Try like this: <script type=”text/javascript”> tinymce.init({ selector: “textarea”, toolbar: “mybutton”, setup: function(editor) { editor.addButton(‘mybutton’, { type: ‘splitbutton’, text: ‘My button’, icon: false, onclick: function() { editor.insertContent(‘Main button’); }, menu: [ {text: ‘Menu item 1’, onclick: function() { tinyMCE.activeEditor.execCommand(“myPopup”, false, { title: ‘Divider’, identifier: ‘divider’ })}}, {text: ‘Menu item 2’, onclick: function() {editor.insertContent(‘Menu item 2’);}} ] … Read more

WordPress with composer, how to handle updates?

Basically in “common” WordPress setup you have two things inside the folder that aren’t part of the core itself: content folder and wp-config.php configuration file. So you are on completely right path: You configure content folder to be elsewhere, outside of core folder You place wp-config.php one directory level above the core folder (WP will … Read more

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