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

wordpress disable certain plugins for catagory?

There is no general way to do that. If you need different sections of your site to use different plugins then you should consider using wordpress in a network/multisite configuration with every section as a subsite and have different plugins working on each subsite. This of course might create its own set of (different) problems.

Plugin option for input box validation

You want to set the input’s type to number for numeric validation. And use the input’s value to set a default value. <input type=”number” id=”title” name=”my_option_namePlugin option for input box validation” value=123 /> If you just want a hint displayed to the user inside the input, use placeholder. <input type=”number” id=”title” name=”my_option_namePlugin option for input … Read more

SSH vs WordPress

Checking what permissions you are actually setting is always a good idea before just doing so. 644 = Owner Read/Write, Group Read, Others Read 664 = Owner Read/Write, Group Read/Write, Others Read 4 – Read, 2 – Write, 1 – Execute You can see from sequence above 644 the first number 6 would be 4+2, … Read more

WordPress Feedback popup with date saved into table

I would suggest using a combination of two plugins. First a lightbox plugin Lightbox Plugins on the WP Plugin Directory Then using Ninja Forms plugin, which is free Ninja Forms Then create a lightbox following the instructions from the lightbox plugin Then create a form in Ninja Forms And then lastly add the form shortcode … Read more

Theme editor removes backslashes

The theme and plugin editor is an abomination, related to times when people where ignoring any security common sense in order to pretend to be user friendly, and if you have to use them then you are doing something terribly wrong. If you can use the editor then your small problem is not being able … Read more