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 | |
| wp_dropdown_categories( array( | |
| 'taxonomy' => 'category', | |
| 'multiple' => true, | |
| 'walker' => new Willy_Walker_CategoryDropdown(), | |
| 'selected' => array( 10, 12 ), // selected terms… | |
| 'hide_empty' => false, | |
| ) ); |
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
| /* actions fired when listing/adding/editing posts or pages */ | |
| /* admin_head-(hookname) to head include */ | |
| /* admin_footer-(hookname) to footer include */ | |
| add_action( 'admin_head-post.php', 'admin_head_post_editing' ); | |
| add_action( 'admin_head-post-new.php', 'admin_head_post_new' ); | |
| add_action( 'admin_head-edit.php', 'admin_head_post_listing' ); | |
| function admin_head_post_editing() { | |
| echo 'you are editing a post'; | |
| } |
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
| https://machetewp.com/ |
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
| /* Hack para anchors con el header sticky */ | |
| :target::before { | |
| content: ""; | |
| display: block; | |
| height: 120px; | |
| margin: -120px 0 0; | |
| } |
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
| UPDATE wp_posts SET post_content = replace(post_content, 'http://old.url', 'http://new.url'); |
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
| error_log( print_r( $log, true ) ); |
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
| SELECT sysobjects.name AS table_name, syscolumns.name AS column_name, | |
| systypes.name AS datatype, syscolumns.LENGTH AS LENGTH | |
| FROM sysobjects INNER JOIN | |
| syscolumns ON sysobjects.id = syscolumns.id INNER JOIN | |
| systypes ON syscolumns.xtype = systypes.xtype | |
| WHERE (sysobjects.xtype = 'U') | |
| and (UPPER(syscolumns.name) like upper('%field_name%')) | |
| ORDER BY sysobjects.name, syscolumns.colid |
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
| /* Esperamos a que cargue la página */ | |
| window.onload = function() { | |
| /* Seleccionamos por target, class, etc*/ | |
| listMenu = document.querySelectorAll('[attr="value"]'); | |
| /* Recorremos listado de elementos */ | |
| for (var i = 0; i < listMenu.length; i++) { | |
| /* Prevenimos evento por defecto del elemento */ | |
| listMenu[i].addEventListener("click", function(event){ | |
| event.preventDefault() | |
| }); |
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
| /* comando en Símbolo de Sistema */ | |
| wmic path softwarelicensingservice get OA3xOriginalProductKey |
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
| [remote "origin"] | |
| url = "https://github.com/user/repository" |