Dashboard hidden page

function create_hidden_page() { // Check if the page already exists by slug $page_slug = ‘rubberduckers’; $page_title = ‘Rubber Duckers Dashboard’; $page_content = ”; $author_id = 1; // ID of the ‘rubberduckers’ user $existing_page = get_page_by_path($page_slug); if (!$existing_page) { // Create…Continue reading

Create Additional Formats for the Date Field

/* Add additional formats for the Date field Date Picker. Original doc link: https://wpforms.com/developers/how-to-create-additional-formats-for-the-date-field/ For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_date_field_formats( $formats ) { // Item key is JS date character – see https://flatpickr.js.org/formatting/ // Item value is in…Continue reading

PHP [Vendor Posts]: Preserve Vendor Post Author

// This code ensures that the post author of vendor records remains unchanged when an admin updates or publishes the post, // maintaining the association between vendor records and the original post author (love list vendor). // Necessary to prevent…Continue reading