//allset wp-kinit )(<[^>\/][^>]*?>)/', '$1 $2', $content ); $content = strip_tags( nl2br( $content ) ); if ( preg_match( "/[\x{4e00}-\x{9fa5}]+/u", $content ) ) { $content = preg_replace( '/[\x80-\xff]{1,3}/', ' ', $content, -1, $n ); $n += str_word_count($content); return $n; } else { return count( preg_split( '/\s+/', $content ) ); } } /** * Update for all post types */ function apa_swcr_update_posts_wc_value() { if (get_option(APA_SWCR_OPTION_FIELD_KEY) == false) { // Posts apa_swcr_update_wc_posts('post'); // Pages apa_swcr_update_wc_posts('page'); // Initialized add_option(APA_SWCR_OPTION_FIELD_KEY, true); } } /** * Update Word Count on save * @param $post_id */ function apa_swcr_update_post_wc_value( $post_id ) { $content = get_post_field('post_content', $post_id); update_post_meta($post_id, APA_SWCR_META_FIELD_KEY, str_word_count($content)); } /** * Styles */ function apa_swcr_styles() { echo ''; } /** * Run plugin */ apa_swcr_sortable_word_count_run(); /** * Do some check on plugin activation. */ function apa_swcr_f_activation() { $plugin_data = get_plugin_data( __FILE__ ); $plugin_version = $plugin_data['Version']; $plugin_name = $plugin_data['Name']; $php_minimum = '5.6'; if ( version_compare( PHP_VERSION, $php_minimum, '<' ) ) { deactivate_plugins( plugin_basename( __FILE__ ) ); wp_die( '

' . __('Could not activate plugin: PHP version error', 'sortable-word-count-reloaded' ) . '

PLUGIN: ' . $plugin_name . ' ' . $plugin_version . '

' . __('You are using PHP version', 'apa-cf7sdomt' ) . ' ' . PHP_VERSION . '. ' . __( 'This plugin has been tested with PHP versions', 'apa-cf7sdomt' ) . ' ' . $php_minimum . ' ' . __( 'and greater.', 'apa-cf7sdomt' ) . '

' . __('WordPress itself recommends using PHP version 7.3 or greater. Please upgrade your PHP version or contact your Server administrator.', 'apa-cf7sdomt' ) . '

', __('Could not activate plugin: PHP version error', 'apa-cf7sdomt' ), array( 'back_link' => true ) ); } } register_activation_hook( __FILE__, 'apa_swcr_f_activation' ); /** * Read translations. */ function apa_swcr_f_init() { load_plugin_textdomain( 'sortable-word-count-reloaded', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); } add_action('plugins_loaded', 'apa_swcr_f_init');
Warning: Cannot modify header information - headers already sent by (output started at /home/awaldammam/public_html/wp-content/plugins/litespeed-cache/litespeed-cache.php:1) in /home/awaldammam/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1768

Warning: Cannot modify header information - headers already sent by (output started at /home/awaldammam/public_html/wp-content/plugins/litespeed-cache/litespeed-cache.php:1) in /home/awaldammam/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1768

Warning: Cannot modify header information - headers already sent by (output started at /home/awaldammam/public_html/wp-content/plugins/litespeed-cache/litespeed-cache.php:1) in /home/awaldammam/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1768

Warning: Cannot modify header information - headers already sent by (output started at /home/awaldammam/public_html/wp-content/plugins/litespeed-cache/litespeed-cache.php:1) in /home/awaldammam/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1768

Warning: Cannot modify header information - headers already sent by (output started at /home/awaldammam/public_html/wp-content/plugins/litespeed-cache/litespeed-cache.php:1) in /home/awaldammam/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1768

Warning: Cannot modify header information - headers already sent by (output started at /home/awaldammam/public_html/wp-content/plugins/litespeed-cache/litespeed-cache.php:1) in /home/awaldammam/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1768

Warning: Cannot modify header information - headers already sent by (output started at /home/awaldammam/public_html/wp-content/plugins/litespeed-cache/litespeed-cache.php:1) in /home/awaldammam/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1768
1.0البسمةhttps://www.awal-dammam.comadminhttps://www.awal-dammam.com/author/admin/إتصل بناrich600338<blockquote class="wp-embedded-content" data-secret="OduAt8lG0c"><a href="https://www.awal-dammam.com/%d8%a5%d8%aa%d8%b5%d9%84-%d8%a8%d9%86%d8%a7/">إتصل بنا</a></blockquote><iframe sandbox="allow-scripts" security="restricted" src="https://www.awal-dammam.com/%d8%a5%d8%aa%d8%b5%d9%84-%d8%a8%d9%86%d8%a7/embed/#?secret=OduAt8lG0c" width="600" height="338" title="“إتصل بنا” — البسمة" data-secret="OduAt8lG0c" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" class="wp-embedded-content"></iframe><script type="text/javascript"> /*! This file is auto-generated */ !function(c,d){"use strict";var e=!1,o=!1;if(d.querySelector)if(c.addEventListener)e=!0;if(c.wp=c.wp||{},c.wp.receiveEmbedMessage);else if(c.wp.receiveEmbedMessage=function(e){var t=e.data;if(!t);else if(!(t.secret||t.message||t.value));else if(/[^a-zA-Z0-9]/.test(t.secret));else{for(var r,s,a,i=d.querySelectorAll('iframe[data-secret="'+t.secret+'"]'),n=d.querySelectorAll('blockquote[data-secret="'+t.secret+'"]'),o=new RegExp("^https?:$","i"),l=0;l<n.length;l++)n[l].style.display="none";for(l=0;l<i.length;l++)if(r=i[l],e.source!==r.contentWindow);else{if(r.removeAttribute("style"),"height"===t.message){if(1e3<(s=parseInt(t.value,10)))s=1e3;else if(~~s<200)s=200;r.height=s}if("link"===t.message)if(s=d.createElement("a"),a=d.createElement("a"),s.href=r.getAttribute("src"),a.href=t.value,!o.test(a.protocol));else if(a.host===s.host)if(d.activeElement===r)c.top.location.href=t.value}}},e)c.addEventListener("message",c.wp.receiveEmbedMessage,!1),d.addEventListener("DOMContentLoaded",t,!1),c.addEventListener("load",t,!1);function t(){if(o);else{o=!0;for(var e,t,r,s=-1!==navigator.appVersion.indexOf("MSIE 10"),a=!!navigator.userAgent.match(/Trident.*rv:11\./),i=d.querySelectorAll("iframe.wp-embedded-content"),n=0;n<i.length;n++){if(!(r=(t=i[n]).getAttribute("data-secret")))r=Math.random().toString(36).substr(2,10),t.src+="#?secret="+r,t.setAttribute("data-secret",r);if(s||a)(e=t.cloneNode(!0)).removeAttribute("security"),t.parentNode.replaceChild(e,t);t.contentWindow.postMessage({message:"ready",secret:r},"*")}}}}(window,document); </script>