How can I remove commas when adding tags?

Commas aren’t stored in the actual tag, they’re injected when tags are rendered. Whatever your tag-removal solution will be, it’ll happen via your theme files (or a plugin), and not when you input tags in the editor. Here’s a quick shortcode solution for specific usage: Place in functions.php: add_shortcode( ‘tags_no_comma_shortcode’, ‘get_tags_no_comma’ ); function get_tags_no_comma() { … Read more

Override Admin menu icon

One way is to use the admin_menu hook to insert CSS with your selection of menu icons (which use the DashIcons). The googles show this recent result: https://swapnil.blog/2018/06/25/how-to-change-wordpress-admin-icons/ . Here’s some code from there; you’ll just need to figure out the CSS for each menu item – use your Developer inspection tools (F12, usually) to … Read more

How disable some product features on woocomerce?

Just add below function in your function file /*For remove tab from product tab*/ function remove_linked_products($tabs){ unset($tabs[‘inventory’]); unset($tabs[‘shipping’]); return($tabs); } add_filter(‘woocommerce_product_data_tabs’, ‘remove_linked_products’, 10, 1); /*Remove Virtual and Downloadeble checkbox*/ function remove_product_type_options( $options ) { unset( $options[‘virtual’] ); unset( $options[‘downloadable’] ); return $options; } add_filter( ‘product_type_options’, ‘remove_product_type_options’ );

Change the layout of action links under the plugin names

you can customise these links with this filter : https://developer.wordpress.org/reference/hooks/plugin_action_links_plugin_file/ try that : const PLUGIN_SLUG = “super-socializer/super_socializer.php”; add_filter(“plugin_action_links_” . PLUGIN_SLUG, function (array $actions, string $plugin_file, array $plugin_data, string $context) { unset($actions[1]); // remove link “Add-Ons” unset($actions[2]); // remove link “Support Documentation” return $actions; }, 10, 4);

Is it possible to load the css just on my plugin admin page?

To answer the question, from the codex, listed above in the comments. function load_custom_wp_admin_style($hook) { // Load only on ?page=mypluginname if($hook != ‘toplevel_page_mypluginname’) { return; } wp_enqueue_style( ‘custom_wp_admin_css’, plugins_url(‘admin-style.css’, __FILE__) ); } add_action( ‘admin_enqueue_scripts’, ‘load_custom_wp_admin_style’ ); Note: If you are unsure what your $hook name is .. use this to determine your hookname. Put the … Read more

How to check nonce lifetime value of plugins?

Check codex info about Nonces life time here. Here is a quick code that will echo life time of nonces in footer of your site’s front-end as html comment. Put it in your functions.php file. $n = “”; add_filter(‘nonce_life’, ‘wptuts_change_nonce_hourly’); function wptuts_change_nonce_hourly( $nonce_life ) { global $n ; $n = $nonce_life; return $nonce_life; } // … Read more