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
in wp-config.php | |
define( 'DISALLOW_FILE_EDIT', true ); // disable file editor | |
define( 'WP_POST_REVISIONS', 10 ); // keep last 10 revisions | |
in functions.php | |
add_filter( 'auto_update_plugin', '__return_true' ); // auto update plugins |
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
AFG : Afghanistan | |
ALA : Åland Islands | |
ALB : Albania | |
DZA : Algeria | |
ASM : American Samoa | |
AND : Andorra | |
AGO : Angola | |
AIA : Anguilla | |
ATA : Antarctica | |
ATG : Antigua and Barbuda |
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
/** | |
* Returns the number of posts for a term in a taxonomy, for a post type | |
* Found out more at https://www.darrenlambert.com/wordpress-how-to-get-the-post-count-for-a-term-and-post-type/ | |
* @param string $post_type | |
* @param string $taxonomy | |
* @return int count | |
*/ | |
function get_post_count_for_term_and_post_type( $term_id, $taxonomy, $post_type ) { | |
// Build the args |
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
/** | |
* Get value from GTM, and update a form input | |
*/ | |
( function () { | |
window.addEventListener( "load", function () { | |
// Check for our form | |
const form = document.querySelector( '.our-form' ); | |
if ( ! form ) return; |
OlderNewer