متجر شبكة لايك سات';}/** * 2. Feed URLs stay out of the index. */function likesat_is_feed_request() { if ( function_exists( 'is_feed' ) && is_feed() ) { return true; } $uri = isset( $_SERVER['REQUEST_URI'] ) ? (string) $_SERVER['REQUEST_URI'] : ''; return (bool) preg_match( '#/feed/?$#', $uri );}add_filter( 'wp_robots', 'likesat_feed_robots' );function likesat_feed_robots( $robots ) { if ( likesat_is_feed_request() ) { $robots['index'] = false; $robots['follow'] = false; } return $robots;}add_action( 'send_headers', 'likesat_feed_robots_header' );function likesat_feed_robots_header() { if ( ! headers_sent() && likesat_is_feed_request() ) { header( 'X-Robots-Tag: noindex, nofollow', true ); }}/** * 3. Baseline security headers for public frontend pages. */add_action( 'send_headers', 'likesat_security_headers', 998 );function likesat_security_headers() { if ( is_admin() || is_user_logged_in() || headers_sent() ) { return; } header( 'X-Content-Type-Options: nosniff', true ); header( 'X-Frame-Options: SAMEORIGIN', true ); header( 'Referrer-Policy: strict-origin-when-cross-origin', true ); header( 'Permissions-Policy: geolocation=(), microphone=(), camera=()', true );}/** * One-time: exclude WooCommerce/utility pages from Rank Math sitemaps. */add_action( 'admin_init', 'likesat_rm_exclude_utility_pages', 5 );function likesat_rm_exclude_utility_pages() { if ( get_option( 'likesat_rm_excluded_done' ) ) { return; } $opt = get_option( 'rank-math-options-sitemap' ); $opt = is_array( $opt ) ? $opt : array(); $excl = isset( $opt['exclude_posts'] ) ? $opt['exclude_posts'] : ''; $ids = array_filter( wp_parse_id_list( $excl ) ); foreach ( array( 9, 10, 11, 19, 33 ) as $id ) { if ( ! in_array( $id, $ids, true ) ) { $ids[] = $id; } } $opt['exclude_posts'] = implode( ',', $ids ); update_option( 'rank-math-options-sitemap', $opt ); update_option( 'likesat_rm_excluded_done', 1 );}
ريسيفر Professor A2Z – رام 2 جيجا + ايثرنت | شبكة لايك سات
ريسيفر Professor A2Z – رام 2 جيجا + ايثرنت
Start typing to see products you are looking for.
المراجعات
لا توجد مراجعات بعد.