<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Functions.php Archiv - Homepage nach Preis - Webseite erstellen lassen</title>
	<atom:link href="https://homepage-nach-preis.de/wort/functions-php/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>★ Responsive Webdesigner Homepage erstellen lassen, bereits ab 299 Euro professionelle Webseite. ✓ Google-Optimiert ✓ Mobil-Optimiert &#124; Webdesign &#38; Seo</description>
	<lastBuildDate>Tue, 16 Mar 2021 18:36:08 +0000</lastBuildDate>
	<language>de</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://homepage-nach-preis.de/wp-content/uploads/2021/02/cropped-icon-150x150.png</url>
	<title>Functions.php Archiv - Homepage nach Preis - Webseite erstellen lassen</title>
	<link></link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Die besten WordPress Codes &#8211; Teil 1</title>
		<link>https://homepage-nach-preis.de/2020/11/15/die-besten-wordpress-codes-functions-php/</link>
					<comments>https://homepage-nach-preis.de/2020/11/15/die-besten-wordpress-codes-functions-php/#respond</comments>
		
		<dc:creator><![CDATA[Homepage-nach-Preis]]></dc:creator>
		<pubDate>Sun, 15 Nov 2020 00:07:34 +0000</pubDate>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Wordpress Code]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Functions.php]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">https://homepage-nach-preis.de/?p=4926</guid>

					<description><![CDATA[<p>Mit diesen Codes können Sie Ihre WordPress-Webseite anpassen und ändern. Die Codes müssen in der functions.php im Theme-Ordner eingefügt werden. WordPress Version entfernen Entfernen der WordPress-Version im Header function hnp_remove_version_info() { return ''; } add_filter( 'the_generator', 'hnp_remove_version_info' ); WordPress Emoji entfernen WordPress Emoji dauerhaft entfernen function hnp_wp_emojicons() { remove_action( 'admin_print_styles', 'print_emoji_styles' ); remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); remove_action( 'wp_print_styles', 'print_emoji_styles' ); remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' ); remove_filter( 'the_content_feed', 'wp_staticize_emoji' ); remove_filter( 'comment_text_rss', 'wp_staticize_emoji' ); add_filter( 'tiny_mce_plugins', 'hnp_emojicons_tinymce' ); add_filter( 'emoji_svg_url', '__return_false' ); } add_action( 'init', 'hnp_wp_emojicons' ); function hnp_emojicons_tinymce( $plugins ) { if ( is_array( $plugins ) ) { return array_diff( $plugins, array( 'wpemoji' ) ); } else { return array(); } } Beiträge entfernen Beiträge Funktion deaktivieren add_action( 'init', 'hnp_remove_default_post_type', 1 ); function hnp_remove_default_post_type() { register_post_type( 'post', array( 'capability_type' => 'post', 'capabilities' => array( 'edit_post' => 'do_not_allow', // false < WP 4.5 'publish_posts' => 'do_not_allow', // false < WP 4.5 'create_posts' => 'do_not_allow', // false < WP 4.5 'edit_posts' => 'do_not_allow', // false < WP 4.5 ), 'map_meta_cap' => false ) ); } Kommentar Funktion entfernen Kommentare deaktivieren // Admin Menu add_action( 'admin_menu', 'hnp_remove_admin_menus' ); function hnp_remove_admin_menus() { remove_menu_page( 'edit-comments.php' ); } // Seiten und Beiträge....</p>
<p>Der Beitrag <a rel="nofollow" href="https://homepage-nach-preis.de/2020/11/15/die-besten-wordpress-codes-functions-php/">Die besten WordPress Codes &#8211; Teil 1</a> erschien zuerst auf <a rel="nofollow" href="https://homepage-nach-preis.de">Homepage nach Preis - Webseite erstellen lassen</a>. Geschrieben von <a rel="nofollow" href="https://homepage-nach-preis.de/author/homepageadmin/">Homepage-nach-Preis</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Mit diesen Codes können Sie Ihre WordPress-Webseite anpassen und ändern. Die Codes müssen in der functions.php im Theme-Ordner eingefügt werden.</p>
<h3>WordPress Version entfernen</h3>
<p>Entfernen der WordPress-Version im Header</p>
<pre>function hnp_remove_version_info() {
	return '';
}
add_filter( 'the_generator', 'hnp_remove_version_info' );</pre>
<h3>WordPress Emoji entfernen</h3>
<p>WordPress Emoji dauerhaft entfernen</p>
<pre>function hnp_wp_emojicons() {
	remove_action( 'admin_print_styles', 'print_emoji_styles' );
	remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
	remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
	remove_action( 'wp_print_styles', 'print_emoji_styles' );
	remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );
	remove_filter( 'the_content_feed', 'wp_staticize_emoji' );
	remove_filter( 'comment_text_rss', 'wp_staticize_emoji' );
	add_filter( 'tiny_mce_plugins', 'hnp_emojicons_tinymce' );
	add_filter( 'emoji_svg_url', '__return_false' );
}
add_action( 'init', 'hnp_wp_emojicons' );
function hnp_emojicons_tinymce( $plugins ) {
	if ( is_array( $plugins ) ) {
		return array_diff( $plugins, array( 'wpemoji' ) );
	} else {
		return array();
	}
}</pre>
<h3>Beiträge entfernen</h3>
<p>Beiträge Funktion deaktivieren</p>
<pre>add_action( 'init', 'hnp_remove_default_post_type', 1 );
function hnp_remove_default_post_type() {
	register_post_type( 'post', array(
		'capability_type' => 'post',
		'capabilities' => array(
			'edit_post' => 'do_not_allow', // false < WP 4.5
			'publish_posts' => 'do_not_allow', // false < WP 4.5
			'create_posts' => 'do_not_allow', // false < WP 4.5
			'edit_posts' => 'do_not_allow', // false < WP 4.5
		),
		'map_meta_cap' => false
	) );
}</pre>
<h3>Kommentar Funktion entfernen</h3>
<p>Kommentare deaktivieren</p>
<pre>// Admin Menu
add_action( 'admin_menu', 'hnp_remove_admin_menus' );
function hnp_remove_admin_menus() {
	remove_menu_page( 'edit-comments.php' );
}
// Seiten und Beiträge
add_action( 'init', 'remove_comment_support', 100 );
function remove_comment_support() {
	remove_post_type_support( 'post', 'comments' );
	remove_post_type_support( 'page', 'comments' );
}
// Admin Leiste
function hnp_admin_bar_render() {
	global $wp_admin_bar;
	$wp_admin_bar->remove_menu( 'comments' );
}
add_action( 'wp_before_admin_bar_render', 'hnp_admin_bar_render' );</pre>
<p>Der Beitrag <a rel="nofollow" href="https://homepage-nach-preis.de/2020/11/15/die-besten-wordpress-codes-functions-php/">Die besten WordPress Codes &#8211; Teil 1</a> erschien zuerst auf <a rel="nofollow" href="https://homepage-nach-preis.de">Homepage nach Preis - Webseite erstellen lassen</a>. Geschrieben von <a rel="nofollow" href="https://homepage-nach-preis.de/author/homepageadmin/">Homepage-nach-Preis</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://homepage-nach-preis.de/2020/11/15/die-besten-wordpress-codes-functions-php/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
