Linux 软件免费装
Banner图

Obydullah Fitness Content Manager

开发者 obydullah
更新时间 2026年10月12日 22:38
PHP版本: 8.0 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

booking custom post type testimonials fitness gym

下载

1.0.0

详情介绍:

Obydullah Fitness Content Manager holds the dynamic content for a fitness or personal training website. You manage hero slides, services, testimonials, and pricing plans in wp-admin, and booking requests arrive from your front-end form into a dedicated admin list. The content lives in the plugin, not in a theme, so it survives a theme change. Settings are stored in wp_options rather than theme_mod() for the same reason. What it does Design choices

安装:

  1. Go to Plugins → Add New, search for "Obydullah Fitness Content Manager", or upload the plugin zip.
  2. Click Install Now, then Activate.
  3. Activation creates the {prefix}ofcm_bookings database table.
  4. Open Obydullah Fitness Content Manager and add content using the dashboard cards.
  5. Set your contact and about details under Obydullah Fitness Content Manager → Site Settings.
Using the booking form The booking form is a fetch() request to admin-ajax.php. Your front-end form needs to append two fields: The handler accepts name, email, phone, goal, and message. Name and email are required; everything else is optional. The response is a JSON object — on success the message is in the data property of the payload, and on failure the payload is an error with a data string explaining what went wrong. For theme developers Content is read with the standard WordPress APIs. Query the post types directly, or read meta with the prefixed keys: Settings are read with get_option() using keys such as ofcm_contact_email, ofcm_social_instagram, ofcm_about_coach_name, and ofcm_about_stat1_number. Bookings are read from the table with $wpdb. Always use prepare(): $rows = $wpdb->get_results( $wpdb->prepare( "SELECT id, name, email, status FROM {$table} WHERE status = %s ORDER BY created_at DESC LIMIT %d", $status, 20 ) );

常见问题:

Where is my data stored?

In your own WordPress database on your own hosting. Content types use custom post types and their meta, settings use wp_options, and bookings use a custom table prefixed with your WordPress table prefix. Nothing is sent anywhere else.

Why are bookings in a table instead of a post type?

Form submissions are write-once records that never need revisions, categories, or scheduled publishing. Storing them in a custom table keeps the posts table from filling with thousands of low-value entries and keeps booking queries fast regardless of how many submissions you have.

Can I import the bookings I already have?

Not from inside the plugin. The table is created fresh on activation. If you are moving from a site where bookings were stored as a custom post type, you will need to copy those rows into the new table yourself, or re-enter them.

Does the plugin send anything to an external service?

No. It loads no remote fonts, scripts, or styles, makes no outbound HTTP requests, and collects no usage or telemetry data.

Will deleting the plugin delete my data?

No. Removing the plugin leaves your content, settings, and the bookings table in place. Delete the {prefix}ofcm_bookings table and the ofcm_ options yourself if you want a clean slate.

Do I need a particular theme?

No. The plugin is theme-independent and works with any theme. It provides no front-end output on its own — your theme renders the content.

Can I translate the admin labels?

Yes. All strings use the obydullah-fitness-content-manager text domain. A translation file in the plugin's languages folder is picked up automatically.

更新日志:

1.0.0