git tag -a v1.1.0 -m "Here is a message."git tag| .idea | |
| node_modules | |
| .vscode | |
| .DS_Store | |
| .AppleDouble | |
| .LSOverride | |
| package-lock.json | |
| # Thumbnails | |
| ._* |
| <script> | |
| function loadCSS(e, t, n) { | |
| "use strict"; | |
| var i = window.document.createElement("link"); | |
| var o = t || window.document.getElementsByTagName("script")[0]; | |
| i.rel = "stylesheet"; | |
| i.href = e; | |
| i.media = "only x"; | |
| o.parentNode.insertBefore(i, o); | |
| setTimeout(function () { i.media = n || "all" }) |
| zipforwp() { FILENAME=`basename $1` && zip -r $FILENAME.zip $1 -x '/*.git/*' -x '/*.DS_Store' -x '/*.gitignore' -x '/*.idea/*' && echo 'Zipped!' | terminal-notifier -sound default } |
| ga('send', 'event', [eventCategory], [eventAction], [eventLabel], [eventValue], [fieldsObject]); | |
| jQuery(".et_pb_contact_form").each(function() { | |
| var jqForm = jQuery(this); | |
| var jsForm = this; | |
| jqForm.submit(function(event) { | |
| event.preventDefault(); | |
| gtag('event', 'submit', { 'event_category': 'Contact Us Form Tracking', 'event_action': 'submit', 'event_label': 'Form Completed' } ); |
| /* | |
| * Show Image Id on Media Edit | |
| */ | |
| function ibenic_add_media_custom_field( $form_fields, $post ) { | |
| $form_fields['info_ID'] = array( | |
| 'label' => __( 'Image ID' ), | |
| 'input' => 'html', | |
| 'html' => "<input type='text' class='text' readonly='readonly' onfocus='this.select();' value='" . esc_attr( $post->ID ) . "' /><br />", | |
| ); | |
| <?php | |
| /* | |
| * Adds the new column to the Admin Post View as the first column. | |
| */ | |
| function my_columns_filter( $columns ) { | |
| $column_thumbnail = array( 'thumbnail' => 'Thumbnail' ); | |
| $columns = array_slice( $columns, 0, 1, true ) + $column_thumbnail + array_slice( $columns, 1, null, true ); | |
| return $columns; | |
| } |
| /* | |
| * Add Class to all Image | |
| */ | |
| function alter_attr_wpse_102158( $attr ) { | |
| $attr['class'] .= ' img-fluid'; | |
| return $attr; | |
| } | |
| add_filter( 'wp_get_attachment_image_attributes', 'alter_attr_wpse_102158' ); |
| /* | |
| * Limit Excerpt Length | |
| */ | |
| function custom_excerpt_length($length) { | |
| return 15; | |
| } | |
| add_filter('excerpt_length', 'custom_excerpt_length', 999); | |
| /* | |
| * Remove Wordpress More tag. |