PHP code example of mihdan / wp-oop-settings-api
1. Go to this page and download the library: Download mihdan/wp-oop-settings-api library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mihdan / wp-oop-settings-api example snippets
$wposa->add_sidebar_card(
[
'id' => 'donate',
'title' => __( 'Enjoyed WPOSA?', 'wposa' ),
'desc' => __( '<p>Please leave us a <a href="https://wordpress.org/support/plugin/mihdan-index-now/reviews/#new-post" target="_blank" title="Rate & review it">★★★★★</a> rating. We really appreciate your support</p>', 'wposa' ),
]
);