This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Add child PDF snippets to SearchWP result excerpt . | |
| add_filter( | |
| 'get_the_excerpt', | |
| function ( $excerpt ) { | |
| global $post; | |
| if ( ! $post instanceof WP_Post || ! is_search() || post_password_required() || $post->searchwp_excerpt_found ) { | |
| return $excerpt; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en" > | |
| <head> | |
| <meta charset="UTF-8"> | |
| <link rel="apple-touch-icon" type="image/png" href="https://cpwebassets.codepen.io/assets/favicon/apple-touch-icon-5ae1a0698dcc2402e9712f7d01ed509a57814f994c660df9f7a952f3060705ee.png" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use Tribe\Events\Pro\Views\V2\Views\Photo_View; | |
| use Tribe\Events\Views\V2\Template; | |
| $view = new Photo_View(); | |
| $template = new Template( $view ); | |
| $v2_event = tribe_get_event( $event ); | |
| $template->template( 'photo/event', [ 'event' => $v2_event ] ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define BLYNK_PRINT Serial | |
| #include <SoftwareSerial.h> | |
| #include <ESP8266WiFi.h> | |
| #include <BlynkSimpleEsp8266.h> | |
| #include <MHZ19PWM.h> | |
| MHZ19PWM mhz(D5, MHZ_DELAYED_MODE); | |
| char auth[] = "dM-aERE2i1ZZd-aauogHCQXcGloNdNSi"; | |
| char ssid[] = "Mosne_2G"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Don't use SearchWP for search query | |
| add_filter( 'posts_pre_query', function( $posts, $query ) { | |
| $query->set( 'searchwp', false ); | |
| $query->set( 'using_searchwp', false ); | |
| return $posts; | |
| }, 5, 2); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| all | |
| position | |
| top | |
| right | |
| bottom | |
| left | |
| z-index | |
| box-sizing | |
| display | |
| flex |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [*] | |
| charset = utf-8 | |
| end_of_line = lf | |
| indent_size = 4 | |
| indent_style = space | |
| insert_final_newline = true | |
| max_line_length = 120 | |
| tab_width = 4 | |
| trim_trailing_whitespace = true | |
| ij_continuation_indent_size = 8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "global": { | |
| "check_for_updates_on_startup": true, | |
| "show_in_menu_bar": true, | |
| "show_profile_name_in_menu_bar": false | |
| }, | |
| "profiles": [ | |
| { | |
| "complex_modifications": { | |
| "parameters": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_action('acf/init', 'my_acf_init_blocks'); | |
| function my_acf_init_blocks() { | |
| // Check function exists. | |
| if( function_exists('acf_register_block_type') ) { | |
| // Register a restricted block. | |
| acf_register_block_type(array( | |
| 'name' => 'restricted', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Restricted Block Template. | |
| * | |
| * @param array $block The block settings and attributes. | |
| * @param string $content The block inner HTML (empty). | |
| * @param bool $is_preview True during AJAX preview. | |
| * @param (int|string) $post_id The post ID this block is saved to. | |
| */ |
OlderNewer