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_filter ( 'woocommerce_account_menu_items', 'misha_one_more_link' ); | |
function misha_one_more_link( $menu_links ){ | |
// we will hook "anyuniquetext123" later | |
$new = array( 'anyuniquetext123' => 'Gift for you' ); | |
// or in case you need 2 links | |
// $new = array( 'link1' => 'Link 1', 'link2' => 'Link 2' ); | |
// array_slice() is good when you want to add an element between the other ones |
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_filter ( 'woocommerce_account_menu_items', 'misha_rename_downloads' ); | |
function misha_rename_downloads( $menu_links ){ | |
// $menu_links['TAB ID HERE'] = 'NEW TAB NAME HERE'; | |
$menu_links['downloads'] = 'My Files'; | |
return $menu_links; | |
} |
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_filter( 'default_content', 'my_editor_content' ); | |
function my_editor_content( $content ) { | |
$content = "[vc_row full_width='stretch_row' css='.vc_custom_1546953804123{margin-top: -314px !important;padding-top: 310px !important;padding-bottom: 195px !important;background-image: url(http://homolog.mrjobs.com.br/ocktus/wp-content/uploads/2018/12/2-imoveis-alguel-interna.jpg?id=128) !important;background-position: center !important;background-repeat: no-repeat !important;background-size: cover !important;}'][vc_column][/vc_column][/vc_row][vc_row el_class='post-content' css='.vc_custom_1549045196317{margin-top: -150px !important;background-color: #fbf3f0 !important;}'][vc_column width='2/3'][vc_column_text][sliderImoveis][/vc_column_text][/vc_column][vc_column width='1/3'][vc_raw_html]JTNDcCUzRUxvcmVtJTIwaXBzdW0lMjBkb2xvciUyMHNpdCUyMGFtZXQlMkMlMjBjb25zZWN0ZXR1ciUyMGFkaXBpc2NpbmclMjBlbGl0LiUyMFN1c3BlbmRpc3NlJTIwZGlnbmlzc2ltJTIwbGFjdXMlMjB1dCUyMG1ldHVzJTIwZmluaWJ1cyUyMHByZXRpdW0uJTIwTWF1cmlzJTIwbWF1cmlzJTIwb |
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 woo_remove_wc_account_page_noindex(){ | |
if (!is_user_logged_in()) { | |
remove_action( 'wp_head', 'wc_page_noindex' ); | |
} | |
} | |
add_action( 'init', 'YOURPREFIX_remove_wc_account_page_noindex' ); |
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('admin_head', 'my_custom_fonts'); | |
function my_custom_fonts() { | |
echo '<style> | |
body, td, textarea, input, select { | |
font-family: "Lucida Grande"; | |
font-size: 12px; | |
} | |
</style>'; | |
} |
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
{ | |
"workbench.startupEditor": "newUntitledFile", | |
"explorer.confirmDelete": false, | |
"editor.formatOnSave": true, | |
"prettier": { "arrowParens": "always" } | |
} |
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
Tema: Dark+(default Dark) | |
1. Browser Preview por Kenneth Auchenberg | |
2. ES7 React/Redux | |
3. ESLint | |
5. Prettier | |
6. VSCode Google Translate por funkyremi | |
---------------- | |
nvm < para versões do nodejs e npm |