Break_Tag
function line_break_shortcode () { return ‘‘; } add_shortcode( ‘br’, ‘line_break_shortcode’ );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
function line_break_shortcode () { return ‘‘; } add_shortcode( ‘br’, ‘line_break_shortcode’ );Continue reading
add_action( ‘gform_user_updated’, ‘add_additional_roles’, 10, 4 ); function add_additional_roles( $user_id, $feed, $entry, $user_pass ) { if ( rgar( $entry, ‘form_id’ ) != 1 ) { return; } $user = new WP_User( $user_id ); $selected_role_array = explode( ‘|’, rgar( $entry, ’26’ )…Continue reading
add_action( ‘init’, function() { if ( function_exists( ‘aioseo’ ) ) { aioseo()->preUpdates->createCacheTable(); } });Continue reading
$Host = “localhost”; $User = “i9065950_wp2”; $Password = “E.SaEj4ol3IAOnlC0ur27”; $DBName = “i9065950_wp2”; $Table = “cemdata”; //error_reporting(0); $link = mysqli_connect($Host, $User, $Password, $DBName); $query = “SELECT * from cemdata where storylink like ‘1’ ORDER BY surname ASC”; $result = mysqli_query($link, $query);…Continue reading
$Host = “localhost”; $User = “i9065950_wp2”; $Password = “E.SaEj4ol3IAOnlC0ur27”; $DBName = “i9065950_wp2”; $Table = “cemdata”; //error_reporting(0); $link = mysqli_connect($Host, $User, $Password, $DBName); $query = “SELECT * from cemdata where storylink like ‘1’ ORDER BY surname ASC”; $result = mysqli_query($link, $query);…Continue reading
define(‘SUBDIRECTORY’, ‘modernpos’);Continue reading
define(‘FILEMANAGERURL’, ‘http://full-install-url-of-modernpos/storage/products’);Continue reading
Your Name: Your Email: Meeting Date:Continue reading
add_filter( ‘gform_us_states’, ‘us_states’ ); function us_states( $states ) { $new_states = array(); foreach ( $states as $state ) { $new_states[ GF_Fields::get( ‘address’ )->get_us_state_code( $state ) ] = $state; } return $new_states; }Continue reading
/** * Create User Smart Tags from the WordPress profile. * * @link https://wpforms.com/developers/how-to-create-more-user-smart-tags/ */ function wpf_dev_register_user_profile_smart_tags ( $tags ) { // Key is the tag, item is the tag name. $tags[ ‘wp_nickname’ ] = ‘WP Profile Nickname’; $tags[ ‘wp_username’…Continue reading