What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-02-24 12:25:02
woocommerce subscriptions custom user rolde
add_action( 'woocommerce_subscription_status_expired', 'change_user_role_on_subscription_expired', 10, 1 ); function change_user_role_on_subscription_expired( $subscription ) { // Get WP_User Object from subscription $user = new WP_User($subscript... Add solution -
Javascript 2022-02-17 15:50:02
wordpress use jquery in functions.php
I know what you mean about the tutorials. Here's how I do it: First you need to write your script. In your theme folder create a folder called something like 'js'. Create a file in that folder for your javascript. E.g. your-script.js. Add your jQuery scr... Add solution -
PHP 2022-02-15 04:05:33
hide category menu from custom post type
<?php function by_remove_menu_pages() { // remove testimonials menu section // remove_menu_page( 'edit.php?post_type=testimonials-widget' ); // remove categories remove_submenu_page( 'edit.php?post_type=testimonials-widget', 'edit-tags.php?taxonom... Add solution -
PHP 2022-02-13 15:55:08
Dorf SMS Plugin
<?php /* Plugin Name: Dorf SMS Plugin Plugin URI: http://akismet.com/?return=true Description: amaing sms plugin Version: 1.0.1 Author: akshay Author URI: http://www.yourkishore.com License: GPLv2 or later */ include_once('mySettings.php'); if( is_ad... Add solution -
Other 2022-02-09 11:25:15
product title with price in product page hook
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_title', 5 ); remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 ); function show_title_with_price() { global $product; $ti... Add solution -
PHP 2022-02-07 00:30:02
how make custom menu in wordpress
function wpb_custom_new_menu() { register_nav_menus( array( 'my-custom-menu' => __( 'My Custom Menu' ), 'extra-menu' => __( 'Extra Menu' ) &n... Add solution -
PHP 2022-02-06 15:25:19
WPML - Add a floating language switcher to the footer
//WPML - Add a floating language switcher to the footer add_action('wp_footer', 'wpml_floating_language_switcher'); function wpml_floating_language_switcher() { echo '<div class="wpml-floating-lan... Add solution
Best helpers
Ranking is empty