import { blocksAttributes } from '@Attributes/getBlocksDefaultAttributes'; import { applyFilters } from '@wordpress/hooks'; // Parameters for these methods: // currentValue - The variable/attribute that is altered by settings. // key - The key of the default attribute for that setting. // blockName - The name of the block. const getAttributeFallback = ( currentValue, key, blockName ) => { const allBlocksAttributes = applyFilters( 'uagb.blocksAttributes', blocksAttributes ); return currentValue ? currentValue : allBlocksAttributes[ blockName ][ key ].default; } export const getFallbackNumber = ( currentValue, key, blockName ) => { const allBlocksAttributes = applyFilters( 'uagb.blocksAttributes', blocksAttributes ); return isNaN( currentValue ) ? allBlocksAttributes[ blockName ][ key ].default : currentValue; } export default getAttributeFallback; {"id":851,"date":"2023-08-04T16:08:30","date_gmt":"2023-08-04T16:08:30","guid":{"rendered":"https:\/\/febracistocantins.com.br\/?page_id=851"},"modified":"2023-08-08T19:44:45","modified_gmt":"2023-08-08T19:44:45","slug":"executivos-febracis","status":"publish","type":"page","link":"https:\/\/febracistocantins.com.br\/executivos-febracis\/","title":{"rendered":"Executivos Febracis"},"content":{"rendered":"\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
<\/div>\n\t\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"\"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t

Fale agora com um dos executivos da Febracis<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t<\/path><\/svg>\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\tBRUNA SANTOS<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t<\/path><\/svg>\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\tJACKELINY PACHECO<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t<\/path><\/svg>\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\tSILAS OLIVEIRA<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"

Fale agora com um dos executivos da Febracis BRUNA SANTOS JACKELINY PACHECO SILAS OLIVEIRA<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_canvas","meta":{"footnotes":""},"class_list":["post-851","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/febracistocantins.com.br\/wp-json\/wp\/v2\/pages\/851","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/febracistocantins.com.br\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/febracistocantins.com.br\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/febracistocantins.com.br\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/febracistocantins.com.br\/wp-json\/wp\/v2\/comments?post=851"}],"version-history":[{"count":0,"href":"https:\/\/febracistocantins.com.br\/wp-json\/wp\/v2\/pages\/851\/revisions"}],"wp:attachment":[{"href":"https:\/\/febracistocantins.com.br\/wp-json\/wp\/v2\/media?parent=851"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}