This file contains 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 |
This file contains 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 | |
?> |
This file contains 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 |
This file contains 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 | |
/** | |
* Reason for CMB2 box | |
*/ | |
function cmb2_admin_init() { | |
$prefix = 'add_prefix_here'; | |
// Create the box. | |
$cmb2 = \new_cmb2_box( | |
array( |
This file contains 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 | |
/** | |
* Reason for CMB2 box | |
*/ | |
function create_[cmb2]_group_box() { | |
// Create the box. | |
$cmb2 = \new_cmb2_box( | |
array( | |
'id' => '[CHANGEME-id]', | |
'title' => __( '[CHANGEME-title]', '[CHANGEME-localization]' ), |
This file contains 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 | |
$cmb->add_field( | |
array( | |
'name' => __( '[CHANGEME-name]', '[CHANGEME-localization]' ), | |
'id' => '[CHANGEME-id]', | |
'desc' => __( '[CHANGEME-description]', '[CHANGEME-localization]' ), | |
'type' => 'wysiwyg', | |
'options' => array( | |
'textarea_rows' => 1, | |
'media_buttons' => false, |
This file contains 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 | |
/* | |
* [Class Title] | |
*/ | |
class [className] { | |
/** | |
* Class Instance. | |
* |
This file contains 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 | |
/** | |
* Hook to create the Custom Post Type. | |
*/ | |
function action_cpt() { | |
$cpt_name = __( '[Singular Name]', '[localization]' ); | |
$cpt_plural = __( '[Plural Name]', '[localization]' ); | |
$labels = array( | |
'name' => $cpt_name, |
This file contains 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
define( 'DISALLOW_FILE_EDIT', true ); | |
define( 'WP_DEBUG', true ); | |
define( 'WP_DEBUG_LOG', true ); | |
define( 'WP_DEBUG_DISPLAY', false ); | |
define( 'SAVEQUERIES', true ); | |
define( 'SCRIPT_DEBUG', true ); |
This file contains 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
wp media regenerate $(wp post list --format=ids --post_type=attachment --post_mime_type=image/jpeg --year=2020 --url=[url]) --only-missing --url=[url] | |
//BU Version | |
sudo -u wpcms bash | |
wp media regenerate $(wp post list --format=ids --post_type=attachment --post_mime_type=image/jpeg --year=2020 --monthnum=07 --url=https://www.bu.edu/) --yes --only-missing --url=https://www.bu.edu |
OlderNewer