update a database entry 888

//888 from tls- //3040 from Gilroes if ( ! post_password_required() ) { // Code to fetch and print CFs, such as: $key_1_value_1 = get_post_meta( $post->ID, ‘key_1’, true ); echo $key_1_value_1; } $indextls = $_POST[‘indextls’]; echo ‘The index you searched for…Continue reading

Change “Howdy Admin” in Admin Bar

function wpcode_snippet_replace_howdy( $wp_admin_bar ) { // Edit the line below to set what you want the admin bar to display intead of “Howdy,”. $new_howdy = ‘Welcome,’; $my_account = $wp_admin_bar->get_node( ‘my-account’ ); $wp_admin_bar->add_node( array( ‘id’ => ‘my-account’, ‘title’ => str_replace( ‘Howdy,’,…Continue reading

Team Member only allow Team Member Block

add_filter(‘allowed_block_types_all’, ‘enable_blocks_for_custom_post_type’, 10, 2); function enable_blocks_for_custom_post_type($allowed_block_types, $block_editor_context) { if ($block_editor_context->post->post_type === ‘team-member’) { return array(‘acf/team-member’, ‘core/post-featured-image’); } return $allowed_block_types;}Continue reading

Landing Page TypeForm Response

print_r($_POST); $token = “tfp_G1KjScDoCo9ciiXKUGZTHFUoYwnK76sMArX6kpjLkHUZ_3sp7T7jeMDR579”; header(‘Content-Type: application/json’); // Specify the type of data $ch = curl_init(‘https://api.typeform.com/forms/NQP4LUEZ/responses?page_size=1’); $authorization = “Authorization: Bearer “.$token; curl_setopt($ch, CURLOPT_HTTPHEADER, array(‘Content-Type: application/json’ , $authorization )); curl_setopt($ch, CURLOPT_HTTPGET, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $result = curl_exec($ch); curl_close($ch); // Close the…Continue reading