What do you want to save?
Add Code snippet
New code examples
-
Other 2021-11-02 10:50:13
buddypress member directory add xprofile field
add_action( 'bp_directory_members_item', 'bpex_add_profile_field_data' ); function bpex_add_profile_field_data() { $field_data = xprofile_get_field( $field_id, bp_member_user_id(), true ); $field_value = $value->data->value; echo '... Add solution -
PHP 2021-11-01 15:47:16
wordpress change posts archive
add_action('init', 'post_slug_rewrite'); /* You can change "blog" to any slug you prefer. line 10 and 12. */ function post_slug_rewrite() { $args = objectToArray( get_post_type_object('post') ); $args['has_archive'] = 'blog'; $args['rewr... Add solution -
C 2021-10-28 23:57:16
add_to_cart how to call it woocommerce
add_action( 'template_redirect', 'quadlayers_add_to_cart_function' ); function quadlayers_add_to_cart_function () { $product_id = 1326; if ( WC()->cart->get_cart_contents_count() == 0 ) { WC()->cart->add_to_cart( $product_i... Add solution -
PHP 2021-10-27 14:13:06
how add administration menu in wordpress
<?php /** Step 2 (from text above). */ add_action( 'admin_menu', 'my_menu' ); /** Step 1. */ function my_menu() { add_options_page( //this code Add submenu page to the Settings main menu 'My Options', 'My Menu', //this para... Add solution
Best helpers
Ranking is empty