Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /proc/1534260/cwd/plugins/jetpack/modules/ |
Upload File : |
<?php /** * Module Name: Custom content types * Module Description: Display different types of content on your site with custom content types. * First Introduced: 3.1 * Requires Connection: No * Auto Activate: No * Module Tags: Writing * Sort Order: 34 * Feature: Writing * Additional Search Queries: cpt, custom post types, portfolio, portfolios, testimonial, testimonials * * @package automattic/jetpack */ use Automattic\Jetpack\Redirect; /** * Load Portfolio CPT. */ function jetpack_load_custom_post_types() { include __DIR__ . '/custom-post-types/portfolios.php'; } /** * Make module configurable. */ function jetpack_custom_post_types_loaded() { Jetpack::enable_module_configurable( __FILE__ ); } add_action( 'jetpack_modules_loaded', 'jetpack_custom_post_types_loaded' ); /** * Add Settings Section for CPT */ function jetpack_cpt_settings_api_init() { add_settings_section( 'jetpack_cpt_section', '<span id="cpt-options">' . __( 'Your Custom Content Types', 'jetpack' ) . '</span>', 'jetpack_cpt_section_callback', 'writing' ); } add_action( 'admin_init', 'jetpack_cpt_settings_api_init' ); /** * Settings Description */ function jetpack_cpt_section_callback() { ?> <p> <?php esc_html_e( 'Use these settings to display different types of content on your site.', 'jetpack' ); ?> <a target="_blank" rel="noopener noreferrer" href="<?php echo esc_url( Redirect::get_url( 'jetpack-support-custom-content-types' ) ); ?>"><?php esc_html_e( 'Learn More', 'jetpack' ); ?></a> </p> <?php } jetpack_load_custom_post_types();