Skip to content

kama1983/docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

security : wp-login.php

authro area in wp-admin folder

plugin rename wp-login.php

rename wp-login.php

wp-config.php define('WP_AUTO_UPDATE','true')

????? ????????? ?? ?? ???? ???????? ?????? ??????

//remove Paragraph Element From Posts

function remove_p() { remove_filter('the_content','wpautop'); return $content; }

// add tag , function , order add_filter('the_content','remove_p',0);

//breadcrumbs

html code include('includes/breadcrumb.php');

//widgets القائمة الجانبية //statisti for category posts

'approve'); $comments_counts = 0; $all_comments = get_comments($comments_arg); foreach($all_comments as $comment) { $post_id = $comment->comment_post_ID; if(! in_category('linux',$post_id)) { continue; } $comment_counts++; } ?>

Statistics

//posts in category $cat = get_queried_object(); $postscounts = $cat->count;

//latest posts

Latest Categroy

    5,'cat' => 8]);

    if($query->have_posts()) while($query->have_posts()) { $query->the_post() echo "

  • ".the_title()."
  • "; } wp_reset_postdata(); ?>

//hot posts by comments

2,'orderby' => 'comment_count']); if($query->have_posts()) while($query->have_posts()) { $query->the_post() echo "
  • ".the_title()."
  • "; } wp_reset_postdata(); ?>

    //dynimc sidebar

    'Main Sidebar', 'id' => 'main-sidebar', 'description' => '', 'class' =>'', 'before_widget' => '', 'after_widget' =>'', 'before_title' => '', 'after_title' => '') ); } add_action('widget_init','theme_sidebar'); //make sidebar sidebar.php in theme folder //category category.php in theme folder

    //category-slug or name or id category-javascript.php in theme folder

    //شرح تتميز تعليق الكاتب داخل صفحة المقال change css style in comment box

    .post-page .bypostauthor:after{ content:"Author" }

    .post-page .bypostauthor{

    }

    //404.page make 404.page in theme folder

    //pagintions in function.php

    function number_page() { global $wp_query; $all_pages = $wp_query->max_num_pages; $current_page = max(1,get_query_var('paged')); if($all_pages > 1) { return paginate_links([ 'base' => get_pagenum_link().'%_%', 'format' => '/page/%#%', 'current' => $current_page, //mid_size default 2 make before and after size of pages 'mid_size' => 1, 'end_size' => 1 ]); } }

    prev if(get_previous_posts_link()) { previous_posts_link(''); } next if(get_next_posts_link()) { next_posts_link(''); }

    About

    No description, website, or topics provided.

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published