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

Move WPCode Status Column

add_filter( ‘wpcode_code_snippets_table_columns’, function ( $columns ) { if ( isset( $columns[‘status’] ) ) { $status = $columns[‘status’]; unset( $columns[‘status’] ); $columns = array_slice( $columns, 0, 1, true ) + array( ‘status’ => $status ) + array_slice( $columns, 1, count( $columns…Continue reading

Open Oxygen Builder Structure Panel

/** * Open the Oxygen Builder struture panel automatically when loaded. */ add_action( ‘oxygen_enqueue_ui_scripts’, function() { if ( defined( ‘SHOW_CT_BUILDER’ ) ) { ?> // Add the event listener to the DOM loaded document.addEventListener( ‘DOMContentLoaded’, () => { setTimeout(function ()…Continue reading