/** * Create a taxonomy * * @uses Inserts new taxonomy object into the list * @uses Adds query vars * * @param string Name of taxonomy object * @param array|string Name of the object type for the taxonomy object. * @param array|string Taxonomy arguments * @return null|WP_Error WP_Error if errors, otherwise null. */ function ..
Archives : Tháng mười một-2018
/** * Registers a new post type * @uses $wp_post_types Inserts new post type object into the list * * @param string Post type key, must not exceed 20 characters * @param array|string See optional args description above. * @return object|WP_Error the registered post type object, or an error object */ function prefix_register_name() { $labels ..
$all_tags = get_tags(); $tag_id = array(); foreach( $all_tags as $tag ) { $tag_id[] = $tag->term_id; } $args = array( ‘numberposts’ => 5, ‘tag__in’ => $tag_id ); $posts = get_post..
add_filter( ‘woocommerce_product_tabs’, ‘flwoo_new_product_tab’ ); function flwoo_new_product_tab( $tabs ) { $tabs[‘description’][‘title’] = ‘Thông tin’; $tabs[‘tt_tab’] = array( ‘title’ => __( ‘Hướng dẫn thanh toán’, ‘woocommerce’ ), ‘priority’ => 20, ‘callback’ => ‘thanhtoan_tab_content’ ); $tabs[‘ctdt_tab’] = array( ‘title’ => __( ‘Chính sách điều kiện’, ‘woocommerce’ ), ‘priority’ => 21, ‘callback’ => ‘ctdt_tab_content’ ); return $tabs; } function ..
Phản hồi