-
news
New Feature! Check differences between versions
Now you can check differences between WordPress Core versions / Plugins versions. https://www.wp-plugin-api.com/diff/ To add your plugin of interest, please submit your request from our Request Form: https://www.wp-plugin-api.com/request-form/ -
the_generator
Remove the version number from pages and feeds
// remove version info from head and feeds add_filter(‘the_generator’, ‘digwp_complete_version_removal’); function digwp_complete_version_removal() { return ”; } Thanks digwp.com https://digwp.com/2012/10/customizing-wordpress-feeds/ -
gutenberg_can_edit_post_type
Disable Gutenberg editor
add_filter(‘gutenberg_can_edit_post_type’, ‘__return_false’); https://coliss.com/articles/blog/wordpress/how-to-disable-gutenberg.html -
wp_ajax_
Using admin-ajax in front end to dynamically retrieve data
https://hijiriworld.com/web/wordpress-ajax/ http://fwww.hateblo.jp/entry/2017/11/24/160719 -
core
WordPress 4.9.8 Hooks
https://www.wp-plugin-api.com/version/wordpress-4-9-8/ https://wordpress.org/news/2018/08/wordpress-4-9-8-maintenance-release/ -
Add select field to TinyMCE to change line height
function add_style_select_button($buttons) { array_unshift($buttons, ‘styleselect’); return $buttons; } add_filter(‘mce_buttons_2’, ‘add_style_select_button’); function my_mce_before_init_insert_formats( $init_array ) { $style_formats = array( // These are the custom styles array( ‘title’ => ‘line 2’, ‘block’ => ‘span’, ‘classes’ => ‘line20’, ‘wrapper’ => true, ), array( ‘title’ => ‘line 3’, ‘inline’ => ‘span’, ‘classes’ => ‘line30’, ‘wrapper’ => true, ), ); // Insert the array, JSON ENCODED, into ‘style_formats’ $init_array[‘style_formats’] = json_encode( $style_formats ); return $init_array; } // Attach callback to ‘tiny_mce_before_init’ add_filter( ‘tiny_mce_before_init’, ‘my_mce_before_init_insert_formats’ ); css /* custom css */ .line20 { line-height: 2em; } .line30 { line-height: 3em; } -
core
WordPress 4.9.7 Hooks
https://www.wp-plugin-api.com/version/wordpress-4-9-7/ -
script_loader_src
Remove Version Number From CSS & JS
// Remove WP Version From Styles add_filter( ‘style_loader_src’, ‘sdt_remove_ver_css_js’, 9999 ); // Remove WP Version From Scripts add_filter( ‘script_loader_src’, ‘sdt_remove_ver_css_js’, 9999 ); // Function to remove version numbers function sdt_remove_ver_css_js( $src ) { if ( strpos( $src, ‘ver=’ ) ) $src = remove_query_arg( ‘ver’, $src ); return $src; } -
plugin
Akismet (4.0.8) Hooks
https://www.wp-plugin-api.com/version/akismet-4-0-8/ https://wordpress.org/plugins/akismet/ -
plugin
BuddyPress (3.1.0) Hooks
https://www.wp-plugin-api.com/version/buddypress-3-1-0/