wordpress

WordPress non-plugin optimization Description

function bigfa_description() { global $s, $post; $description = ''; $blog_name = get_bloginfo('name'); if ( is_singular() ) { $ID = $post->ID; $title = $post->post_title; $author = $post->post_author; $user_info = get_userdata($author); $post_author = $user_info->display_name; if (!get_post_meta($ID, "meta-description", tr…继续阅读 »
wordpress

How can I disable the update prompt in wordpress

Forbid, plugin update, theme update, wordpress itself update prompt methods No wp update Add_filter (' pre_site_transient_update_core, create_function (" $a ", "return null;" )); // close the core prompt Add_filter (' pre_site_transient_update_plugins, create_function (" $a ", "return null;" )); // close the plug-in prompt Add_filter (' pre_site_transient_update_themes, create_functi…继续阅读 »
wordpress

How to disable the automatic save after wordpress changes

WordPress offers a "modified automatically save" function, automatically stored in the database each time you modify articles, so if you are not careful to modify mistake can return to modify the previous version. This is a useful feature in certain situations. For example, if you accidentally delete a post, you can revert to the previous version. Also, if you have multiple users at the same ti…继续阅读 »