Using W3 Total Cache, I set expire headers to media, css and js files,but it seems doesn’t work [closed]

My first port of call would be to make sure that you have all the appropriate modules enabled for your server. For example, on a LAMP stack: In your apache’s http.conf the following lines would need to be uncommented LoadModule expires_module modules/mod_expires.so LoadModule headers_module modules/mod_headers.so LoadModule mime_module modules/mod_mime.so You would need to restart your apache … Read more

Am I using an action hook correctly?

… (although I found it strange that I didn’t need to write activation or deactivation code…). You don’t need activation of deactivation code unless there is something you need to do on activation or deactivation. I tested my plugin by using a simple echo ‘fd is running’; which strangely shows up at the top of … Read more

Exclude specifed files from plugin editor

Those constants are set in wp-config.php like define( ‘DISALLOW_FILE_EDIT’, true ); define( ‘DISALLOW_FILE_MODS’, true ); The first line disables file editing in the wp backend, whereas the second line disables plugin installation or deletion entirely. If you want to disable editing of files from the backend only partly, you’d have to do it another way.

how to repeat taxonomy in different places on wordpress

register_taxonomy( ‘taxonomy’, array( ‘post’, ‘coupons’ ), $args ); https://generatewp.com/taxonomy/ can help you. // new code taxonomias function clrp_taxonomy_post(){ global $wpdb, $app_abbr; //need $wpdb!! if(get_option($app_abbr.’_coupon_store_tax_permalink’)) $store_tax_base_url = get_option($app_abbr.’_coupon_store_tax_permalink’); else $store_tax_base_url=”store”; register_taxonomy( APP_TAX_STORE, // taxonomy stores array( APP_POST_TYPE_POST, APP_POST_TYPE ), // type POST + APP_POST_TYPE array( ‘hierarchical’ => true, ‘labels’ => array( ‘name’ => __( ‘Stores’, ‘appthemes’), … Read more

WordPress Dashboard organize posts based on categories

you could use restrict_manage_posts to add a dropdown field to the admin bar. however this code needs refining, because terms are not presented hierarchical atm. add_action( ‘restrict_manage_posts’, ‘my_restrict_manage_posts’ ); function my_restrict_manage_posts() { global $typenow; $taxonomy = ‘your_taxonomy_name’; if( $typenow != “page” && $typenow != “post” ){ $filters = array($taxonomy); foreach ($filters as $tax_slug) { $tax_obj … Read more