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
| <style> | |
| @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&family=Source+Sans+3:wght@200;300;400;500;600;700;800;900&family=Source+Serif+4:opsz,[email protected],200;8..60,300;8..60,400;8..60,500;8..60,600;8..60,700;8..60,800;8..60,900&display=swap'); | |
| </style> | |
| <div class="antialiased"> | |
| <div> | |
| <p>Buttons for white bg</p> | |
| <div class="flex gap-10 p-4"> | |
| <!-- Filled --> | |
| <div class="flex flex-col flex-wrap gap-4"> |
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://play.tailwindcss.com/Y1JC8vU5sO |
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
| {"lastUpload":"2021-06-08T21:17:22.450Z","extensionVersion":"v3.4.3"} |
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 | |
| // Steps to passing function to array | |
| // 1. Make parameters to add to function | |
| // 2. Set up function and pass parameter | |
| // 3. Register function via add_action | |
| // 4. Call do_action passing in the parameters needed | |
| $array = array('1', '2', 3, 4); | |
| function a_hooked_function($array) { | |
| var_dump($array); |
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
| <nav> | |
| <?php | |
| foreach( get_terms( 'tax_pipeline', array( 'hide_empty' => true, 'parent' => 0 ) ) as $parent_term ) { | |
| // display top level term name | |
| echo $parent_term->name . '<br>'; | |
| foreach( get_terms( 'tax_pipeline', array( 'hide_empty' => true, 'parent' => $parent_term->term_id ) ) as $child_term ) { | |
| // display name of all childs of the parent term | |
| echo '>>>>>' . $child_term->name . '<br>'; | |
| } |
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://codex.wordpress.org/Plugin_API/Filter_Reference/single_template | |
| <?php | |
| function get_custom_post_type_template( $single_template ) { | |
| global $post; | |
| if ( 'my_post_type' === $post->post_type ) { | |
| $single_template = dirname( __FILE__ ) . '/post-type-template.php'; | |
| } |
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 | |
| $posts = array(); | |
| foreach($_POST as $key => $value): | |
| // if(!in_array($key, $_POST) && !empty($value)) { | |
| // $posts[$key] = $value; | |
| // } | |
| if(!in_array($key, $_POST)) { | |
| $posts[$key] = $value; | |
| } |
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 all of this tu custom page template ?> | |
| <?php | |
| global $wpdb; | |
| $error = ''; | |
| $success = ''; | |
| // check if we're in reset form | |
| if( isset( $_POST['action'] ) && 'reset' == $_POST['action'] ) | |
| { |
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
| Copy the file "foobar.txt" from a remote host to the local host | |
| $ scp [email protected]:foobar.txt /some/local/directory | |
| Copy the file "foobar.txt" from the local host to a remote host | |
| $ scp foobar.txt [email protected]:/some/remote/directory | |
| Copy the directory "foo" from the local host to a remote host's directory "bar" | |
| $ scp -r foo [email protected]:/some/remote/directory/bar | |
| Copy the file "foobar.txt" from remote host "rh1.edu" to remote host "rh2.edu" |
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
| tar -cvzf backup.tar * //packing | |
| tar zxvf file_name.tar.gz * //unpacking |
NewerOlder