functions

Hide Show Updates WordPress

You may also be that those who do not like the repeated message notification to update WordPress in various ways to counter this is to see that it's easiest to place the following code in the functions.php file is a shell.

add_filter( ‘pre_site_transient_update_core’, create_function( ‘$a’, “return null;” ) );

This will simply display the message will prevent.

View some of the tab stop on WordPress

You may want to display the list of custom sheet and avoid the View Some Forms. برای این که این کار را بدون بهره‌گیری از افزونه بکنید کدهای زیر را در functions.php که در پوشه‌ی پوسته ی شما جای دارد بنویسید:

// add page ids to the exclude list
function my_banned_pages( $exclude_array ) {
    return array_merge( $exclude_array, array( 4, 17 ) );
}
add_filter( 'wp_list_pages_excludes', 'my_banned_pages' );

Well now look at the code in parenthesis in front of the array is written Shmarhhayy. شما باید شماره‌ی برگه هایی که می‌خواهید از نمایش آن‌ها جلوگیری شود را در این جا بنویسید و بین آن‌ها کاما بگذارید شماره‌ی برگه‌ها همان Page ID است.

Message:

This site has the right to take copies (Copyright) Is taking any copies without permission Narvast and may lead to prosecution.
Email: sushyant@zavarzadeh.org
Yahoo messenger: sushyant_90
Gtalk IM: sushyant.zavarzadeh

Live interview

Archive