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 | |
| add_filter('acf/fields/relationship/result', 'my_acf_fields_relationship_result', 10, 4); | |
| function my_acf_fields_relationship_result ($text, $post, $field, $post_id) { | |
| return sprintf('%d / %s / %s', $post_id, $post -> slug, $text); | |
| } | |
| // by default only $text is rendered |
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
| <script type="application/ld+json"> | |
| [ | |
| { | |
| "@context": "https://schema.org/", | |
| "@type": "Recipe", | |
| "@id": "https://espetinhodesucesso.com/qual-o-melhor-peixe-para-moqueca-descubra-aqui/#recipe", | |
| "url": "https://espetinhodesucesso.com/qual-o-melhor-peixe-para-moqueca-descubra-aqui/", | |
| "name": "Qual o melhor peixe para moqueca? Descubra aqui!", | |
| "description": "Um prato que divide opiniões é a moqueca, mas a dúvida das pessoas geralmente é determinar qual o melhor peixe para moqueca. Veja!", | |
| "keywords": "", |
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
| function get_users_who_favorited_post_custom ($post_id, $limit = 4) { | |
| // Define uma chave única para o transient baseada no post_id | |
| $transient_key = 'favorite_users_post_' . $post_id; | |
| // Verifica se o resultado já está em cache | |
| $cached_users = get_transient($transient_key); | |
| if ($cached_users !== false) { | |
| return $cached_users; // Retorna os dados do cache | |
| } |
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
| { | |
| "liveSassCompile.settings.forceBaseDirectory": "", | |
| "liveSassCompile.settings.formats": [ | |
| { | |
| "format": "compressed", | |
| "extensionName": ".min.css", | |
| "savePath": "~/../css/" | |
| } | |
| ] | |
| } |
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
| <div id="player" data-video-id="ZZ5LpwO-An4"></div> | |
| <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
| <script type="text/javascript"> | |
| var tag = document.createElement('script'); | |
| var firstScriptTag = document.getElementsByTagName('script')[0]; | |
| // O container do video | |
| var playerDiv = $('#player'); |
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
| const clampedPaginatedIndex = computed(() => { | |
| const page = parseInt(response.products?.page ?? 1); | |
| const lastPage = response.products?.last_page ?? 1; | |
| const clampRange = Math.min(5, lastPage); | |
| const offset = Math.max(0, Math.min(page - Math.ceil(clampRange / 2), lastPage - clampRange)); | |
| return Array.from({ length: clampRange }, (_, index) => offset + index + 1); | |
| }); |
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
| //API e Código de integração | |
| <script type="text/javascript" src="https://d335luupugsy2.cloudfront.net/js/integration/stable/rd-js-integration.min.js"></script> | |
| //Este código de integração é encontrado nos dados da conta no painel do RD | |
| <script type="text/javascript" async src="https://d335luupugsy2.cloudfront.net/js/loader-scripts/5d1f5125-2ff1-41ad-959d-5b2e3f6a2023-loader.js" > | |
| jQuery('.wpcf7-form').submit(function(e){//é o form - tem que sar a tag form | |
| jQuery('[type="submit"]').attr('disable','disable');//é o botão de envio | |
| e.preventDefault(); | |
| var postdata=jQuery('.wpcf7-form').serializeArray();//é o form - tem que sar a tag form | |
| postdata.push({ |
NewerOlder