pasang iklan atau new modoil tengah artikel

wp only //Insert ads after second paragraph of single post content. function prefix_insert_after_paragraph2( $ads, $content ) { if ( ! is_array( $ads ) ) { return $content; } $closing_p = ‘ ‘; $paragraphs = explode( $closing_p, $content ); foreach ($paragraphs as $index => $paragraph) { if ( trim( $paragraph ) ) { $paragraphs[$index] .= $closing_p; … Continue reading “pasang iklan atau new modoil tengah artikel”

Sembunyikan menu di wordpress Backend admin

fungsi menyembunyikan hide menu admin /backend kususnya penulis/author : function hide_custom_post_type_for_authors() { if (current_user_can(‘author’)) { // Replace ‘dfads’ with the slug of your custom post type remove_menu_page(‘edit.php?post_type=dfads’); } } add_action(‘admin_menu’, ‘hide_custom_post_type_for_authors’, 100);

Role Memblokir Penulis Author Selain Administrator untuk membuat link atau backlink WordPress

//////blokir keseluruhan ://///// function restrict_links_in_posts($content) { // Remove all tags $content = preg_replace(‘/]*>.*?/i’, ”, $content); return $content; } add_filter(‘the_content’, ‘restrict_links_in_posts’); /////blokir kusus penulis / author :///// function restrict_links_in_author_posts($content) { if (current_user_can(‘author’)) { // Remove all tags $content = preg_replace(‘/]*>.*?/i’, ”, $content); } return $content; } add_filter(‘the_content’, ‘restrict_links_in_author_posts’);

Make Youtube are Static Embed

first u must regist on short url third party when i use tiny.cc then make new short link and paste u code src=”*****” and change u short url by original embed by youtube with tiny.cc the last embed u modification embed in post u can see my example by source