Remove JSON API links in header html

I see in filters.php “add_action( ‘wp_head’, ‘rest_output_link_wp_head’, 10, 0 )” Which makes me think this should do the trick to remove rel=”https://api.w.org/”. remove_action( ‘wp_head’, ‘rest_output_link_wp_head’ ); The rest… * cough * seem to be in default-filters.php remove_action( ‘wp_head’, ‘wp_oembed_add_discovery_links’ ); To remove the rest_output_link_header remove_action( ‘template_redirect’, ‘rest_output_link_header’, 11 ); Reference wp_oembed_add_discovery_links rest_output_link_wp_head rest_output_link_header

Custom Post Type Templates from Plugin Folder?

You can use single_template filter hook. /* Filter the single_template with our custom function*/ add_filter(‘single_template’, ‘my_custom_template’); function my_custom_template($single) { global $post; /* Checks for single template by post type */ if ( $post->post_type == ‘POST TYPE NAME’ ) { if ( file_exists( PLUGIN_PATH . ‘/Custom_File.php’ ) ) { return PLUGIN_PATH . ‘/Custom_File.php’; } } return … Read more

WordPress frameworks and parent themes [closed]

Hybrid Theme Hybrid, developed by Justin Tadlock. Scope of code is primarily PHP internal functionality and front-end templates for themes. Interesting features: code aims to minimize template edits, most of functionality can be controlled via hooks; context-aware – extended body-class, dynamic context-aware hooks that allow to hook events that fire only in specific context; tightly … Read more

Rename block fields in the WordPress style dropdown

Not 100% certain what you mean – I see “Heading 2” rather than H2, and I’m fairly sure I’m using a standard install: If it’s those names you want to change, I don’t know of a way to change them without changing the core files: wp-includes/js/tinymce/langs/wp-langs-en.js (for example); it’s the block starting tinyMCE.addI18n(“en.advanced”