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 | |
| 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. |
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 | |
| /** | |
| * Get image & other links from the given content. | |
| * | |
| * @todo Change the `prefix_` and with your own unique prefix. | |
| * | |
| * @since 1.0.0 | |
| * @return array | |
| */ | |
| if( ! function_exists( 'prefix_get_links_from_content' ) ) : |
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 | |
| echo "Hello World"; |
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 custom column | |
| * | |
| * @todo Change the `prefix_` and with your own unique prefix. | |
| * | |
| * @since 1.0.0 | |
| */ | |
| if( ! function_exists( 'prefix_add_custom_column' ) ) : | |
| function prefix_add_custom_column( $columns = 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
| <?php | |
| $compatible_php = is_php_version_compatible( '5.1' ); | |
| $compatible_wp = is_wp_version_compatible( '4.4' ); | |
| if ( $compatible_php && $compatible_wp ) { | |
| // Compatible PHP & WordPress version. | |
| } else { | |
| // Not Compatible. | |
| } |
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 | |
| if( ! function_exists( 'prefix_yoast_register_current_year' ) ) : | |
| /** | |
| * Register current Year variable in Yoast SEO plugin. | |
| * | |
| * @todo Change the `prefix_` with your own custom prefix. | |
| * @since 1.0.0 | |
| * @return void | |
| */ | |
| function prefix_yoast_register_current_year() { |
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 | |
| if( ! function_exists( 'prefix_yoast_register_current_month' ) ) : | |
| /** | |
| * Register current Month variable in Yoast SEO plugin. | |
| * | |
| * @todo Change the `prefix_` with your own custom prefix. | |
| * @since 1.0.0 | |
| * @return void | |
| */ | |
| function prefix_yoast_register_current_month() { |
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_action( 'rest_api_init', 'prefix_add_categories_in_rest_api' ); | |
| function prefix_add_categories_in_rest_api() { | |
| register_rest_field( | |
| 'astra-portfolio', | |
| 'portfolio-categories', | |
| array( | |
| 'get_callback' => 'prefix_get_portfolio_categories', | |
| 'schema' => null, |
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 | |
| /** | |
| * Get Post By Meta | |
| * | |
| * Get all post IDs which have meta key `location` and meta value `Pune` | |
| * | |
| * @todo Change the `prefix_` and with your own unique prefix. | |
| * | |
| * @since 1.0.0 | |
| */ |
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
| --anyauth Pick "any" authentication method (H) | |
| -a, --append Append to target file when uploading (F/SFTP) | |
| --basic Use HTTP Basic Authentication (H) | |
| --cacert FILE CA certificate to verify peer against (SSL) | |
| --capath DIR CA directory to verify peer against (SSL) | |
| -E, --cert CERT[:PASSWD] Client certificate file and password (SSL) | |
| --cert-status Verify the status of the server certificate (SSL) | |
| --cert-type TYPE Certificate file type (DER/PEM/ENG) (SSL) | |
| --ciphers LIST SSL ciphers to use (SSL) | |
| --compressed Request compressed response (using deflate or gzip) |