Warning: Undefined variable $post in /home/u736670281/domains/codlyt.com/public_html/wp-content/themes/codlyt/functions.php on line 239
Warning: Attempt to read property "ID" on null in /home/u736670281/domains/codlyt.com/public_html/wp-content/themes/codlyt/functions.php on line 239
//=================================
//Remove , and CF7 auto wrapper classes
//=================================
add_filter( 'wpcf7_form_elements', function( $content ) {
// Remove and
$content = str_replace(array('', '
'), '', $content);
// Remove and
// This removes opening span with any attribute
$content = preg_replace('/]*>/', '', $content);
$content = str_replace('', '', $content);
return $content;
});
// Register Custom Post Type: Portfolio (under Codlyt)
function codlyt_register_portfolio_cpt() {
$labels = array(
'name' => _x( 'Portfolio', 'Post Type General Name', 'codlyt' ),
'singular_name' => _x( 'Portfolio Item', 'Post Type Singular Name', 'codlyt' ),
'menu_name' => __( 'Portfolio', 'codlyt' ),
'name_admin_bar' => __( 'Portfolio Item', 'codlyt' ),
'add_new' => __( 'Add New', 'codlyt' ),
'add_new_item' => __( 'Add New Portfolio Item', 'codlyt' ),
'edit_item' => __( 'Edit Portfolio Item', 'codlyt' ),
'new_item' => __( 'New Portfolio Item', 'codlyt' ),
'view_item' => __( 'View Portfolio Item', 'codlyt' ),
'search_items' => __( 'Search Portfolio', 'codlyt' ),
'not_found' => __( 'No portfolio items found', 'codlyt' ),
'not_found_in_trash' => __( 'No portfolio items found in Trash', 'codlyt' ),
);
$args = array(
'labels' => $labels,
'public' => true,
'has_archive' => true,
'rewrite' => array( 'slug' => 'portfolio' ),
'menu_icon' => 'dashicons-portfolio',
'supports' => array( 'title' ),
'show_in_rest' => true,
'show_in_menu' => 'codlyt_dashboard',
);
register_post_type( 'portfolio', $args );
}
add_action( 'init', 'codlyt_register_portfolio_cpt' );
https://codlyt.com/post-sitemap.xml
2025-10-28T17:42:24+00:00
https://codlyt.com/page-sitemap.xml
2026-01-15T11:35:43+00:00
https://codlyt.com/services-sitemap.xml
2026-05-21T17:22:25+00:00
https://codlyt.com/category-sitemap.xml
2025-10-28T17:42:24+00:00
https://codlyt.com/author-sitemap.xml
2025-12-12T10:00:14+00:00