npm install @wordpress/a11y --save
npm install @wordpress/annotations --save
npm install @wordpress/api-fetch --save
npm install @wordpress/autop --save
npm install @wordpress/babel-plugin-import-jsx-pragma
npm install @wordpress/babel-plugin-makepot --save-dev
npm install @wordpress/babel-preset-default --save-dev
npm install @wordpress/base-styles --save-dev
npm install @wordpress/blob --save
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 | |
if( ! function_exists( 'prefix_yoast_register_post_updated_year' ) ) : | |
/** | |
* Register Current Post Publish Year | |
* | |
* @todo Change the `prefix_` with your own custom prefix. | |
* @since 1.0.0 | |
* @return void | |
*/ | |
function prefix_yoast_register_post_updated_year() { |
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 | |
if( ! function_exists( 'prefix_yoast_register_post_publish_year' ) ) : | |
/** | |
* Register Current Post Publish Year | |
* | |
* @todo Change the `prefix_` with your own custom prefix. | |
* @since 1.0.0 | |
* @return void | |
*/ | |
function prefix_yoast_register_post_publish_year() { |
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 | |
/** | |
* Get autoload heavy options from options table | |
* | |
* @todo Change the `prefix_` and with your own unique prefix. | |
* | |
* @since 1.0.0 | |
*/ | |
if( ! function_exists( 'prefix_get_heavy_autoload_options' ) ) : | |
function prefix_get_heavy_autoload_options() { |
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 | |
/** | |
* Get Autoload Options Size | |
* | |
* Get the size of all options which are set as `autoload_size` in the WordPress `wp_options` ($wpdb->options) table. | |
* | |
* @todo Change the `prefix_` and with your own unique prefix. | |
* | |
* @since 1.0.0 | |
*/ |
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 | |
/** | |
* Task to perform | |
* | |
* @todo Change the `prefix_` and with your own unique prefix. | |
* | |
* @since 1.0.0 | |
* | |
* @return void | |
*/ |
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 | |
/** | |
* Add schedule event or Cron event with wp_schedule_event() | |
* | |
* @todo Change the `prefix_` and with your own unique prefix. | |
* | |
* @since 1.0.0 | |
* | |
* @return void | |
*/ |
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 | |
/** | |
* Add Cron Schedules | |
* | |
* @todo Change the `prefix_` and with your own unique prefix. | |
* | |
* @since 1.0.0 | |
* | |
* @param array() $schedules Existing schedules. | |
* @return 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 | |
print_r( wp_get_schedules() ); | |
// Array | |
// ( | |
// [hourly] => Array | |
// ( | |
// [interval] => 3600 | |
// [display] => Once Hourly | |
// ) |
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 | |
if( ! function_exists( 'prefix_convert_array_to_object' ) ) : | |
/** | |
* Convert Array to Object | |
* | |
* Recursively convert a simple or multidimensional array into object. | |
* | |
* @todo Change the `prefix_` and with your own unique prefix. | |
* | |
* @param array $data A simple or multidimentional array. |