// Author: Sumaiya, Anytype Doc: anytype://object?objectId=bafyreidxkc6k7pjtb37uk6g56dgnu6znpyciu7rjdqwwwzuzceuqr6d3ti&spaceId=bafyreih4bocrmskuomcrks3sjwpnzxpbxvxwgto23vof3umg2fywdqzjmy.31bq39w6q8ru7&cid=bafybeifc55atash7zlqcjd3fv425bkwl7z5zstcxdilct5hstlng73xwci&key=6kKA3QiwnksqLbpcJ4T6UhmQ5BHzgJUfbpn1QLnkv5Lv // —————————————————————- // // — Part 1: Create the Secure API Endpoint for Contact Data —- // // —————————————————————- // /** * Register a custom REST API endpoint at /wp-json/custom/v1/contact-data * This is what…Continue reading
/* Disable WordPress Admin Bar for all users */ add_filter( ‘show_admin_bar’, ‘__return_false’ );Continue reading
if( function_exists(‘acf_add_options_page’) ) { acf_add_options_page(); } // // 1. Register ACF Field for Menu JSON add_action(‘acf/init’, function() { if( function_exists(‘acf_add_local_field_group’) ) { acf_add_local_field_group(array( ‘key’ => ‘group_menu_json_import’, ‘title’ => ‘Menu Import’, ‘fields’ => array( array( ‘key’ => ‘field_menu_json’, ‘label’ => ‘Menu…Continue reading
add_action( ‘add_meta_boxes’, function () { if ( ! current_user_can( ‘manage_options’ ) ) { // Don’t display the metabox to users who can’t manage options return; } add_meta_box( ‘wpcode-view-post-meta’, ‘Post Meta’, function () { $custom_fields = get_post_meta( get_the_ID() ); ?> Meta…Continue reading
// Add duplicate button to post/page list of actions. add_filter( ‘post_row_actions’, ‘wpcode_snippet_duplicate_post_link’, 10, 2 ); add_filter( ‘page_row_actions’, ‘wpcode_snippet_duplicate_post_link’, 10, 2 ); // Let’s make sure the function doesn’t already exist. if ( ! function_exists( ‘wpcode_snippet_duplicate_post_link’ ) ) { /** *…Continue reading
@ini_set( ‘upload_max_size’ , ‘256M’ ); @ini_set( ‘post_max_size’, ‘256M’); @ini_set( ‘max_execution_time’, ‘300’ );Continue reading
function s11_word_cloud2( $atts ) { $atts = shortcode_atts( array( ‘words’ => ‘Awesome, Fabulous’, ‘colors’ => ‘#21759b, #d54e21, #464646’, ), $atts ); $colors = array_map(‘trim’, explode( ‘,’, $atts[‘colors’] )); if (empty($colors)) { $colors = [‘#000000’]; } $words = array_filter( explode( ‘,’,…Continue reading