Multi str_replace php
str_replace(
array(
'<',
'>',
'/',
',',
'{',
'}',
'?',
'*'
),
'',
$value[0]->post_content
)
How to add a notice on WordPress Dashboard? function wdes_responsive_tool_1_discounted_add_ons() { ?> <div class="notice notice-success is-dismissible wdes-responsive-tool-1-discounted-add-ons"> <h3>WDES Responsive Tool 1</h3> <p>Get a <strong><a href="http://www.WDES Responsive Tool 1.com/purchase/" target="_blank">discount on Pro Version(20%) and Complete Version(30%) !</a></strong></p> </div> <?php } add_action( 'admin_notices', 'wdes_responsive_tool_1_discounted_add_ons' );
How to get paid membership pro membership level ID? Copy the codes below. function get_user_member_level_id( $userid ){ global $wpdb; return $wpdb->get_var( "SELECT membership_id FROM wp_pmpro_memberships_users WHERE user_id = $userid" ); } echo get_user_member_level_id( $userid );
WDES Responsive Tool 1 is a WordPress plug-in designed to provide mobile responsive solution for your websites. WDES Responsive Tool 1 helps your websites mobile friendly and much more reliable in mobile view.
Get the sub category of the current product category page. This code is applied if you are viewing the product archive page. The codes below and a sample category hierarchy list. Example: Category Parent Category 1 Category 2 Category 3 Category 4 Category 1.1 Category 2.1 Category 3.1 Category 4.1 Here’s a code: $category_object =…
Re-register the default genesis sidebar into your function.php. See the image above for html output. genesis_register_sidebar( array( 'id' => 'sidebar', 'name' => __( 'Primary Sidebar', 'genesis' ), 'before' => '<div id="%1$s" class="widget %2$s">', 'after' => '</div></div>', 'before_title' => '<h4 class="widget-title widgettitle">', 'after_title' => '</h4><div class="widget-inner">' ) );
How to change group avatar thumbnail? <?php bp_group_avatar_thumb() ?> // Usage bp_group_avatar( 'type=thumb&width=50&height=50' ); // Original codes function bp_group_avatar( $args = '' ) { echo bp_get_group_avatar( $args ); } function bp_get_group_avatar( $args = '' ) { global $groups_template; // Bail if avatars are turned off. if ( bp_disable_group_avatar_uploads() || ! buddypress()->avatar->show_avatars ) { return false;…