Question
I'd like to know if the functions below follow best practices in terms of ensuring the best performance and security before deploying to the main site. 1. Remove paged category description add_action( 'wp', 'tu_remove_paged_category_description' ); function tu_remove_paged_category_description() { $page = ...
0
, 1 day 0 Answers 19 views

Question
Wp_Mail function is not running when scheduled in a cron function. I have added the following function: add_filter( 'cron_schedules', 'isa_add_every_one_minutes' ); function isa_add_every_one_minutes( $schedules ) { $schedules['every_sixty_seconds'] = array( ...
0
, 3 days 0 Answers 22 views

Question
.htaccess security I have tested my website at https://observatory.mozilla.org/ and I receive the following two errors: Content Security Policy -25 Content Security Policy (CSP) header not implemented -Subresource Integrity -5 Subresource Integrity (SRI) not implemented, but all external scripts are ...
0
, , 4 days 0 Answers 14 views

Question
I have this code which works fine: $args = array('post_type' => 'brands','meta_query' => array( array( 'key' => 'br_type', 'value' => 'Aviation')),'posts_per_page' => -1,'meta_key' => 'br_name','orderby' => 'meta_value','order' => 'ASC','fields' => 'ids'); However, I need to order first by ascending order by ...
0
, 4 days 0 Answers 21 views